diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-30 00:39:41 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-10-03 15:59:17 +0300 |
commit | e24ce39c8b4e5fa19beb920bda73e7ce38d94d43 (patch) | |
tree | 827c244d6dbc317087ab4c7ed025b9b58a9a11d9 | |
parent | 6a01db01c2d2e6e419e89e361efc9a58e235397f (diff) |
Fix T101118, T101471: Crash with bevel weight in solidify modifier
Just a missing null check for the original edge weight.
-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( |