Fix T75271: GPencil Segment select mode doesn't work

The selection was workring with the evaluated data, but need work with the original data.
This commit is contained in:
Antonio Vazquez 2020-04-01 18:00:35 +02:00
parent 25b2b6724d
commit c4374bc919
Notes: blender-bot 2023-02-14 05:43:04 +01:00
Referenced by issue #75271, GPencil: Segment select mode doesn't work
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}