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
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-05-20 19:00:19 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-05-20 19:00:19 +0400
commitf919973f32e230dbc310e2e9aec60ee20616c779 (patch)
treeaff43a2133f45971bba139f681a5b8a944a9d600 /source/blender/blenkernel/intern/modifier.c
parent1cb1d51db486018c018c1314d93ad5cdbe309dad (diff)
Fix bug #31529 Remesh remove Apply as Shape button
Change modifier_sameTopology() to not not treat Nonconstructive modifiers as having same topology. This function is only used to test whether Apply as Shape is allowed. The exact nature of "nonconstructive" modifiers is not documented, but current list is remesh, fluidsim, decimate, mask, build, and boolean. All of these modify topology, and should not be making making shape keys.
Diffstat (limited to 'source/blender/blenkernel/intern/modifier.c')
-rw-r--r--source/blender/blenkernel/intern/modifier.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c
index 2159837c9a0..b4c30203000 100644
--- a/source/blender/blenkernel/intern/modifier.c
+++ b/source/blender/blenkernel/intern/modifier.c
@@ -250,8 +250,7 @@ int modifier_couldBeCage(struct Scene *scene, ModifierData *md)
int modifier_sameTopology(ModifierData *md)
{
ModifierTypeInfo *mti = modifierType_getInfo(md->type);
- return ELEM3(mti->type, eModifierTypeType_OnlyDeform, eModifierTypeType_Nonconstructive,
- eModifierTypeType_NonGeometrical);
+ return ELEM(mti->type, eModifierTypeType_OnlyDeform, eModifierTypeType_NonGeometrical);
}
int modifier_nonGeometrical(ModifierData *md)