Commit: 191872a836715e8f7ac4d7ecb10a2bd0555213f1 Author: Antonio Vazquez Date: Mon Sep 5 17:08:23 2022 +0200 Branches: master https://developer.blender.org/rB191872a836715e8f7ac4d7ecb10a2bd0555213f1
GPencil: Improve previous commit error checking Better check if the strokes has more points. A 0 or 1 point stroke never need to set start point. =================================================================== M source/blender/blenkernel/intern/gpencil_geom.cc =================================================================== diff --git a/source/blender/blenkernel/intern/gpencil_geom.cc b/source/blender/blenkernel/intern/gpencil_geom.cc index 935bc4a5529..16e71c7418c 100644 --- a/source/blender/blenkernel/intern/gpencil_geom.cc +++ b/source/blender/blenkernel/intern/gpencil_geom.cc @@ -3545,7 +3545,7 @@ void BKE_gpencil_stroke_join(bGPDstroke *gps_a, void BKE_gpencil_stroke_start_set(bGPdata *gpd, bGPDstroke *gps, int start_idx) { - if ((start_idx < 1) || (start_idx >= gps->totpoints) || (gps->totpoints == 0)) { + if ((start_idx < 1) || (start_idx >= gps->totpoints) || (gps->totpoints < 2)) { return; } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs