[Bf-blender-cvs] [a53105f9083] temp-gpencil-fill: GPencil: Draw primitives in multiframe
Antonio Vazquez
noreply at git.blender.org
Thu Jan 28 19:49:31 CET 2021
Commit: a53105f90831311957eedee7c8510f67d279132e
Author: Antonio Vazquez
Date: Thu Jan 28 19:49:29 2021 +0100
Branches: temp-gpencil-fill
https://developer.blender.org/rBa53105f90831311957eedee7c8510f67d279132e
GPencil: Draw primitives in multiframe
The primitive is duplicated in all selected frames
===================================================================
M source/blender/editors/gpencil/gpencil_primitive.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index 3a0e1ce3d15..944bf708c04 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -1377,6 +1377,12 @@ static void gpencil_primitive_interaction_end(bContext *C,
BKE_gpencil_stroke_geometry_update(tgpi->gpd, gps);
}
+ /* In Multiframe mode, duplicate the stroke in other frames. */
+ if (GPENCIL_MULTIEDIT_SESSIONS_ON(tgpi->gpd)) {
+ const bool tail = (ts->gpencil_flags & GP_TOOL_FLAG_PAINT_ONBACK);
+ BKE_gpencil_stroke_copy_to_keyframes(tgpi->gpl, gpf, gps, tail);
+ }
+
DEG_id_tag_update(&tgpi->gpd->id, ID_RECALC_COPY_ON_WRITE);
DEG_id_tag_update(&tgpi->gpd->id, ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY);
More information about the Bf-blender-cvs
mailing list