Tearable Cloth

Vineeth@nxOgre

10-04-2008 10:15:08

}
SharedPtr(const SharedPtr& r)
: pRep(0), pUseCount(0)
{
// lock & copy other mutex pointer

OGRE_SET_AUTO_SHARED_MUTEX_NULL
OGRE_MUTEX_CONDITIONAL(r.OGRE_AUTO_MUTEX_NAME)
{
OGRE_LOCK_MUTEX(*r.OGRE_AUTO_MUTEX_NAME)
OGRE_COPY_AUTO_SHARED_MUTEX(r.OGRE_AUTO_MUTEX_NAME)
pRep = r.pRep;
pUseCount = r.pUseCount;
// Handle zero pointer gracefully to manage STL containers
if(pUseCount)
{
------------> ++(*pUseCount);
}
}
}



I put the cloth paremeter tear : yes and gets stuck where the arrow mark is

As a result the cloth is not being able to tear.

Without the tear: yes and NX_CLF_TEARABLE the program runs without any errors


WHAT could be the problem

:x