[Bf-blender-cvs] [70b3469c0e4] master: GPencil: Fix Stroke keeps selected when duplicate (unreported)
Antonio Vazquez
noreply at git.blender.org
Thu Dec 5 13:46:16 CET 2019
Commit: 70b3469c0e46ca8782bac48d76f0efb3ce1f65ac
Author: Antonio Vazquez
Date: Thu Dec 5 13:44:37 2019 +0100
Branches: master
https://developer.blender.org/rB70b3469c0e46ca8782bac48d76f0efb3ce1f65ac
GPencil: Fix Stroke keeps selected when duplicate (unreported)
When use `Shift+D` the original stroke was unselected only at stroke level, but not at point level and the edit line kept selected.
===================================================================
M source/blender/editors/gpencil/gpencil_edit.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c
index 3ab11f8f3f7..418df724a08 100644
--- a/source/blender/editors/gpencil/gpencil_edit.c
+++ b/source/blender/editors/gpencil/gpencil_edit.c
@@ -770,6 +770,11 @@ static int gp_duplicate_exec(bContext *C, wmOperator *op)
/* deselect original stroke, or else the originals get moved too
* (when using the copy + move macro)
*/
+ bGPDspoint *pt;
+ int i;
+ for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) {
+ pt->flag &= ~GP_SPOINT_SELECT;
+ }
gps->flag &= ~GP_STROKE_SELECT;
}
}
More information about the Bf-blender-cvs
mailing list