diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-30 00:39:41 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-30 00:40:13 +0300 |
commit | 3059c0998a3db3e123a6894f7862fce3084001cd (patch) | |
tree | 701e72f4f10359b69d3b2ac268167585387414fd /source/blender | |
parent | 688c4f7e5198c1ab7c14c01a1dc69ec08f3be073 (diff) |
Fix T101118, T101471: Crash with bevel weight in solidify modifier
Just a missing null check for the original edge weight.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/modifiers/intern/MOD_solidify_nonmanifold.c | 3 |
1 files changed, 2 insertions, 1 deletions
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( |