Fix for recent commit, crash on entering edit mode.

This commit is contained in:
Brecht Van Lommel
2010-01-25 16:42:04 +00:00
parent 5e683ef979
commit 623ea4931c

View File

@@ -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;