compile fix

This commit is contained in:
Erwin Coumans
2017-06-01 12:51:43 -07:00
parent 87293e835c
commit d744fe10dc

View File

@@ -201,7 +201,9 @@ void MyMultiBodyCreator::createRigidBodyGraphicsInstance2(int linkIndex, class b
{ {
m_guiHelper->createRigidBodyGraphicsObject(body, colorRgba); m_guiHelper->createRigidBodyGraphicsObject(body, colorRgba);
int graphicsInstanceId = body->getUserIndex(); int graphicsInstanceId = body->getUserIndex();
m_guiHelper->changeSpecularColor(graphicsInstanceId,specularColor); btVector3DoubleData speculard;
specularColor.serializeDouble(speculard);
m_guiHelper->changeSpecularColor(graphicsInstanceId,speculard.m_floats);
} }
@@ -216,7 +218,9 @@ void MyMultiBodyCreator::createCollisionObjectGraphicsInstance2(int linkIndex, c
{ {
createCollisionObjectGraphicsInstance(linkIndex,col,colorRgba); createCollisionObjectGraphicsInstance(linkIndex,col,colorRgba);
int graphicsInstanceId = col->getUserIndex(); int graphicsInstanceId = col->getUserIndex();
m_guiHelper->changeSpecularColor(graphicsInstanceId,specularColor); btVector3DoubleData speculard;
specularColor.serializeDouble(speculard);
m_guiHelper->changeSpecularColor(graphicsInstanceId,speculard.m_floats);
} }