fixed 2 issues, one related to wrong 'safety' catch for large objects

and COLLADA constaints didn't recognize rigid body names
This commit is contained in:
ejcoumans
2006-10-31 02:11:29 +00:00
parent 68c78eaf4b
commit 82ba30caa6
2 changed files with 4 additions and 2 deletions

View File

@@ -704,7 +704,7 @@ void ColladaConverter::PreparePhysicsObject(struct btRigidBodyInput& input, bool
btRigidBody* body= createRigidBody(isDynamics,mass,startTransform,colShape);
if (body && body->m_userObjectPointer)
if (body)
{
//bodyName is used as identifier for constraints
body->m_userObjectPointer = (void*)input.m_bodyName;