mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-16 06:30:05 +00:00
fixed a crashing bug (NULL strings) and change the viewing angle of default camera in the demo
This commit is contained in:
parent
e8ca371a71
commit
8a98639d78
@ -947,7 +947,7 @@ void ColladaConverter::ConvertRigidBodyRef( btRigidBodyInput& rbInput,btRigidBod
|
||||
{
|
||||
daeElementRef elemRef = elemRefArray[u];
|
||||
daeString elemName = elemRef->getElementName();
|
||||
if (!strcmp(elemName,"kinematic"))
|
||||
if (elemName && !strcmp(elemName,"kinematic"))
|
||||
{
|
||||
daeMemoryRef memRef = elemRef->getValuePointer();
|
||||
|
||||
|
@ -167,6 +167,7 @@ int main(int argc,char** argv)
|
||||
void ColladaDemo::initPhysics(const char* filename)
|
||||
{
|
||||
m_cameraUp = btVector3(0,0,1);
|
||||
m_ele = 60;
|
||||
m_forwardAxis = 1;
|
||||
|
||||
btCollisionDispatcher* dispatcher = new btCollisionDispatcher();
|
||||
|
Loading…
Reference in New Issue
Block a user