move the RigidBodyFromObj to Importers section.

This commit is contained in:
erwincoumans
2016-05-07 16:36:14 -07:00
parent db4fb750bc
commit 8a68e27bb7
2 changed files with 11 additions and 13 deletions

View File

@@ -120,10 +120,10 @@ void RigidBodyFromObjExample::initPhysics()
btVector3 color(1,1,1);
btVector3 scaling(0.1,0.1,0.1);
bool useObjForRendering = ((m_options & ObjUseConvexHullForRendering)!=0);
bool useConvexHullForRendering = ((m_options & ObjUseConvexHullForRendering)!=0);
if (useObjForRendering)
if (!useConvexHullForRendering)
{
int shapeId = m_guiHelper->getRenderInterface()->registerShape(&glmesh->m_vertices->at(0).xyzw[0],
glmesh->m_numvertices,