Fix: correct previous commit

This is an alternative to ba0f73d076. I'm not exactly sure why that on
didn't work yet. Seems like there is some hidden state somewhere, not sure.

Now this fix is more similar to what is done in `curves_blend_write`.

Pull Request: https://projects.blender.org/blender/blender/pulls/148267
This commit is contained in:
Jacques Lucke
2025-10-17 14:40:43 +02:00
parent 632bd741f7
commit c990cd6759

View File

@@ -4416,8 +4416,11 @@ static void write_drawing_array(GreasePencil &grease_pencil,
curves.blend_write_prepare(write_data);
drawing_copy.runtime = nullptr;
curves.blend_write(*writer, grease_pencil.id, write_data);
BLO_write_shared_tag(writer, curves.curve_offsets);
BLO_write_shared_tag(writer, curves.custom_knots);
BLO_write_struct_at_address(writer, GreasePencilDrawing, drawing_base, &drawing_copy);
curves.blend_write(*writer, grease_pencil.id, write_data);
break;
}
case GP_DRAWING_REFERENCE: {