[Bf-blender-cvs] [3059c0998a3] master: Fix T101118, T101471: Crash with bevel weight in solidify modifier

Hans Goudey noreply at git.blender.org
Thu Sep 29 23:40:27 CEST 2022


Commit: 3059c0998a3db3e123a6894f7862fce3084001cd
Author: Hans Goudey
Date:   Thu Sep 29 16:39:41 2022 -0500
Branches: master
https://developer.blender.org/rB3059c0998a3db3e123a6894f7862fce3084001cd

Fix T101118, T101471: Crash with bevel weight in solidify modifier

Just a missing null check for the original edge weight.

===================================================================

M	source/blender/modifiers/intern/MOD_solidify_nonmanifold.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_solidify_nonmanifold.c b/source/blender/modifiers/intern/MOD_solidify_nonmanifold.c
index c41a9e8f828..5948fefa8b3 100644
--- a/source/blender/modifiers/intern/MOD_solidify_nonmanifold.c
+++ b/source/blender/modifiers/intern/MOD_solidify_nonmanifold.c
@@ -2048,7 +2048,8 @@ Mesh *MOD_solidify_nonmanifold_modifyMesh(ModifierData *md,
                                                               0.0f;
             }
             if (result_edge_bweight) {
-              result_edge_bweight[insert] = orig_edge_bweight[(*l)->old_edge];
+              result_edge_bweight[insert] = orig_edge_bweight ? orig_edge_bweight[(*l)->old_edge] :
+                                                                0.0f;
             }
             if (bevel_convex != 0.0f && (*l)->faces[1] != NULL) {
               result_edge_bweight[insert] = clamp_f(



More information about the Bf-blender-cvs mailing list