Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-30 00:39:41 +0300
committerHans Goudey <h.goudey@me.com>2022-09-30 00:40:13 +0300
commit3059c0998a3db3e123a6894f7862fce3084001cd (patch)
tree701e72f4f10359b69d3b2ac268167585387414fd /source
parent688c4f7e5198c1ab7c14c01a1dc69ec08f3be073 (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')
-rw-r--r--source/blender/modifiers/intern/MOD_solidify_nonmanifold.c3
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(