Fix: Grease Pencil: Missing call to finish() writing layer attributes

The `GSpanAttributeWriter` was missing a call to `finish()` to ensure
the changes are tagged and saved.
This commit is contained in:
Falk David
2025-07-17 11:13:57 +02:00
parent 0191848671
commit 1a46806546

View File

@@ -3789,6 +3789,7 @@ blender::bke::greasepencil::Layer &GreasePencil::duplicate_layer(
bke::GSpanAttributeWriter attr = attributes.lookup_for_write_span(iter.name);
GMutableSpan span = attr.span;
span.type().copy_assign(span[*duplicate_layer_idx], span[numLayers]);
attr.finish();
});
this->update_drawing_users_for_layer(*new_layer);