Deformables: enable double sided rendering, reduced the number of debug lines in regular rendering.
This commit is contained in:
@@ -1433,6 +1433,11 @@ void OpenGLGuiHelper::autogenerateGraphicsObjects(btDiscreteDynamicsWorld* rbWor
|
||||
color.setValue(1, 1, 1, 1);
|
||||
}
|
||||
createCollisionObjectGraphicsObject(colObj, color);
|
||||
if (sb)
|
||||
{
|
||||
int graphicsInstanceId = colObj->getUserIndex();
|
||||
changeInstanceFlags(graphicsInstanceId, B3_INSTANCE_DOUBLE_SIDED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user