Bugfix #5044 revisited

Displace modifier crashed when used on Curve, the fix removed the flag
that accepts curve objects, but apparently then a flag to accept meshes
has to be added. (eModifierTypeFlag_AcceptsMesh).

Thanks Michael Crawford for notifying this fix.
This commit is contained in:
Ton Roosendaal 2006-11-09 08:48:24 +00:00
parent 7f0dc54f61
commit 5782a80d70
1 changed files with 1 additions and 1 deletions

View File

@ -3502,7 +3502,7 @@ ModifierTypeInfo *modifierType_getInfo(ModifierType type)
mti->applyModifierEM = edgesplitModifier_applyModifierEM;
mti = INIT_TYPE(Displace);
mti->type = eModifierTypeType_OnlyDeform;
mti->type = eModifierTypeFlag_AcceptsMesh|eModifierTypeType_OnlyDeform;
mti->flags = eModifierTypeFlag_SupportsEditmode;
mti->initData = displaceModifier_initData;
mti->copyData = displaceModifier_copyData;