diff options
-rw-r--r-- | source/blender/editors/gpencil/gpencil_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c index af63c5ca3b2..e8e25a55796 100644 --- a/source/blender/editors/gpencil/gpencil_utils.c +++ b/source/blender/editors/gpencil/gpencil_utils.c @@ -2343,6 +2343,9 @@ int ED_gpencil_select_stroke_segment(bGPdata *gpd, float r_hita[3], float r_hitb[3]) { + if (gps->totpoints < 2) { + return 0; + } const float min_factor = 0.0015f; bGPDspoint *pta1 = NULL; bGPDspoint *pta2 = NULL; |