Fix for recent commit, crash on entering edit mode.
This commit is contained in:
@@ -9228,12 +9228,12 @@ int modifiers_getCageIndex(Scene *scene, Object *ob, int *lastPossibleCageIndex_
|
||||
ModifierData *md = (virtual_)? modifiers_getVirtualModifierList(ob): ob->modifiers.first;
|
||||
int i, cageIndex = -1;
|
||||
|
||||
md->scene= scene;
|
||||
|
||||
/* Find the last modifier acting on the cage. */
|
||||
for (i=0; md; i++,md=md->next) {
|
||||
ModifierTypeInfo *mti = modifierType_getInfo(md->type);
|
||||
|
||||
md->scene= scene;
|
||||
|
||||
if (!(md->mode & eModifierMode_Realtime)) continue;
|
||||
if (!(md->mode & eModifierMode_Editmode)) continue;
|
||||
if (mti->isDisabled && mti->isDisabled(md, 0)) continue;
|
||||
|
||||
Reference in New Issue
Block a user