Merge pull request #1124 from erwincoumans/master

initialize alpha component of color
This commit is contained in:
erwincoumans
2017-05-14 21:34:56 -07:00
committed by GitHub

View File

@@ -1179,11 +1179,11 @@ void OpenGLGuiHelper::autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWor
createCollisionShapeGraphicsObject(colObj->getCollisionShape());
int colorIndex = colObj->getBroadphaseHandle()->getUid() & 3;
btVector3 color;
btVector4 color;
color = sColors[colorIndex];
if (colObj->getCollisionShape()->getShapeType()==STATIC_PLANE_PROXYTYPE)
{
color.setValue(1,1,1);
color.setValue(1,1,1,1);
}
createCollisionObjectGraphicsObject(colObj,color);