Bugfix to get deform modifiers after subsurf work again (reported by nudel)

This commit is contained in:
Daniel Genrich
2008-07-28 22:56:30 +00:00
parent dfc93da127
commit 5ba56ffe47

View File

@@ -1904,7 +1904,7 @@ static void mesh_calc_modifiers(Object *ob, float (*inputVertexCos)[3],
}
/* grab modifiers until index i */
if(modifiers_indexInObject(ob, md) >= index)
if((index >= 0) && (modifiers_indexInObject(ob, md) >= index))
break;
}
@@ -2060,7 +2060,7 @@ static void mesh_calc_modifiers(Object *ob, float (*inputVertexCos)[3],
}
/* grab modifiers until index i */
if(modifiers_indexInObject(ob, md) >= index)
if((index >= 0) && (modifiers_indexInObject(ob, md) >= index))
break;
}