diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-11-21 16:18:12 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-11-21 16:18:12 +0300 |
commit | 38fe962d9542296e94b5881f45043ae5afe8e20e (patch) | |
tree | af1e2d6ed2f3a4d14282ba9b09e0a437d75004cf | |
parent | 0eb096f4060538d6b8db506ec6099137704ed8a7 (diff) | |
parent | 6c6a5a72c2978f7fcd57c419458309ae38fd36d8 (diff) |
Merge branch 'blender-v2.91-release'
-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; |