Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object.c
| Context not available. | |||||
| mti = modifierType_getInfo(modifier_type); | mti = modifierType_getInfo(modifier_type); | ||||
| /* only geometry objects should be able to get modifiers [#25291] */ | |||||
| if (!ELEM(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT, OB_LATTICE)) { | |||||
| return false; | |||||
| } | |||||
| if (ob->type == OB_LATTICE && (mti->flags & eModifierTypeFlag_AcceptsLattice) == 0) { | if (ob->type == OB_LATTICE && (mti->flags & eModifierTypeFlag_AcceptsLattice) == 0) { | ||||
| return false; | return false; | ||||
| Context not available. | |||||