[Bf-blender-cvs] [84e55e3dc25] blender-v3.2-release: Fix T98320: GPencil Crash with Length and Build Modifiers
Antonio Vazquez
noreply at git.blender.org
Sun May 22 21:20:17 CEST 2022
Commit: 84e55e3dc2516d3e440b96fb67d5d9b43b81d039
Author: Antonio Vazquez
Date: Sun May 22 21:10:08 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rB84e55e3dc2516d3e440b96fb67d5d9b43b81d039
Fix T98320: GPencil Crash with Length and Build Modifiers
The length modifiers creates a NULL strokes and this is not handled by Build modifier.
===================================================================
M source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
===================================================================
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
index 930ebb78b46..88515d849bc 100644
--- a/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
+++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilbuild.c
@@ -109,7 +109,7 @@ static void reduce_stroke_points(bGPdata *gpd,
const int points_num,
const eBuildGpencil_Transition transition)
{
- if (points_num == 0) {
+ if ((points_num == 0) || (gps->points == NULL)) {
clear_stroke(gpf, gps);
return;
}
More information about the Bf-blender-cvs
mailing list