Merge branch 'blender-v2.91-release'

This commit is contained in:
Antonio Vazquez 2020-11-21 14:18:12 +01:00
commit 38fe962d95
1 changed files with 3 additions and 0 deletions

View File

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