Initial Grease Pencil 3.0 stage #106848

Merged
Falk David merged 224 commits from filedescriptor/blender:grease-pencil-v3 into main 2023-05-30 11:14:22 +02:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 9e9063b241 - Show all commits

View File

@ -41,7 +41,9 @@ void legacy_gpencil_frame_to_grease_pencil_drawing(GreasePencilDrawing &drawing,
/* Resize the CurvesGeometry. */
CurvesGeometry &curves = drawing.geometry.wrap();
curves.resize(num_points, num_strokes);
curves.offsets_for_write().copy_from(offsets);
if (num_strokes > 0) {
curves.offsets_for_write().copy_from(offsets);
}
OffsetIndices<int> points_by_curve = curves.points_by_curve();
MutableAttributeAccessor attributes = curves.attributes_for_write();