[Bf-blender-cvs] [c4374bc919c] master: Fix T75271: GPencil Segment select mode doesn't work
Antonio Vazquez
noreply at git.blender.org
Wed Apr 1 18:00:53 CEST 2020
Commit: c4374bc919c6ae8162ce5724a51a360e3dd36bfa
Author: Antonio Vazquez
Date: Wed Apr 1 18:00:35 2020 +0200
Branches: master
https://developer.blender.org/rBc4374bc919c6ae8162ce5724a51a360e3dd36bfa
Fix T75271: GPencil Segment select mode doesn't work
The selection was workring with the evaluated data, but need work with the original data.
===================================================================
M source/blender/editors/gpencil/gpencil_utils.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 312cb1b50c0..e153c22b17f 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -2173,7 +2173,8 @@ int ED_gpencil_select_stroke_segment(bGPDlayer *gpl,
float f = 0.0f;
int i2 = 0;
- bGPDframe *gpf = gpl->actframe;
+ bGPDlayer *gpl_orig = (gpl->runtime.gpl_orig) ? gpl->runtime.gpl_orig : gpl;
+ bGPDframe *gpf = gpl_orig->actframe;
if (gpf == NULL) {
return 0;
}
More information about the Bf-blender-cvs
mailing list