Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lattice.c
| Show First 20 Lines • Show All 1,128 Lines • ▼ Show 20 Lines | void BKE_lattice_modifiers_calc(struct Depsgraph *depsgraph, Scene *scene, Object *ob) | ||||
| } | } | ||||
| else { | else { | ||||
| ob->runtime.curve_cache = MEM_callocN(sizeof(CurveCache), "CurveCache for lattice"); | ob->runtime.curve_cache = MEM_callocN(sizeof(CurveCache), "CurveCache for lattice"); | ||||
| } | } | ||||
| for (; md; md = md->next) { | for (; md; md = md->next) { | ||||
| const ModifierTypeInfo *mti = modifierType_getInfo(md->type); | const ModifierTypeInfo *mti = modifierType_getInfo(md->type); | ||||
| if (!(mti->flags & eModifierTypeFlag_AcceptsLattice)) { | if (!(mti->flags & eModifierTypeFlag_AcceptsVertexCosOnly)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (!(md->mode & eModifierMode_Realtime)) { | if (!(md->mode & eModifierMode_Realtime)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (editmode && !(md->mode & eModifierMode_Editmode)) { | if (editmode && !(md->mode & eModifierMode_Editmode)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines | |||||