forked from bartvdbraak/blender
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.
This commit is contained in:
parent
83f66a0cd5
commit
b4fb1e6d9f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user