diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-12-05 15:44:37 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-12-05 15:46:11 +0300 |
commit | 70b3469c0e46ca8782bac48d76f0efb3ce1f65ac (patch) | |
tree | 5d24b430e67ae907c1c3aa8bc7db2d00263eb897 /source/blender/editors/gpencil/gpencil_edit.c | |
parent | d21a8dcae295154c71b8c5c6d480d877af5c0b2a (diff) |
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.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_edit.c')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } } |