diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2014-02-07 19:43:28 +0400 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2014-02-07 19:46:22 +0400 |
commit | b4fb1e6d9f318aa7bed6af8902dd839c0ce76948 (patch) | |
tree | fcc66a304d6ea03209ad2787607fdac8f4ba89ea /source/blender | |
parent | 83f66a0cd51ee0467ad55c73b11375a12fd6e067 (diff) |
Bevel Modifier: fix bug T37916, bad result after mirror modifier.
Bevel needs the vertex normals to be correct and they are not
normally recalculated after a previous modifier, like mirror.
Adding 'dependsOnNormals' -> returns true to modifier info
for Bevel fixes the problem.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/modifiers/intern/MOD_bevel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_bevel.c b/source/blender/modifiers/intern/MOD_bevel.c index 2a6c594c5b9..e5e7e004bbf 100644 --- a/source/blender/modifiers/intern/MOD_bevel.c +++ b/source/blender/modifiers/intern/MOD_bevel.c @@ -183,6 +183,11 @@ static DerivedMesh *applyModifier(ModifierData *md, struct Object *ob, return result; } +static bool dependsOnNormals(ModifierData *UNUSED(md)) +{ + return true; +} + ModifierTypeInfo modifierType_Bevel = { /* name */ "Bevel", /* structName */ "BevelModifierData", @@ -205,7 +210,7 @@ ModifierTypeInfo modifierType_Bevel = { /* isDisabled */ NULL, /* updateDepgraph */ NULL, /* dependsOnTime */ NULL, - /* dependsOnNormals */ NULL, + /* dependsOnNormals */ dependsOnNormals, /* foreachObjectLink */ NULL, /* foreachIDLink */ NULL, /* foreachTexLink */ NULL, |