Collisions: CollisionModifier needs to be resetted for every loop

This commit is contained in:
Daniel Genrich 2008-10-14 11:54:07 +00:00
parent af7b777d22
commit e1aff849e4

@ -1320,6 +1320,8 @@ CollisionModifierData **get_collisionobjects(Object *self, int *numcollobj)
{
collmd = ( CollisionModifierData * ) modifiers_findByType ( coll_ob, eModifierType_Collision );
}
else
collmd = NULL;
if ( collmd )
{
@ -1358,6 +1360,8 @@ CollisionModifierData **get_collisionobjects(Object *self, int *numcollobj)
{
collmd = ( CollisionModifierData * ) modifiers_findByType ( coll_ob, eModifierType_Collision );
}
else
collmd = NULL;
if ( !collmd )
continue;