Fix the crashing issue when closing Blocks3d
Physics engine now destroys JointsService on destructor
This commit is contained in:
@@ -20,6 +20,7 @@ XplicitNgine::XplicitNgine()
|
||||
|
||||
XplicitNgine::~XplicitNgine()
|
||||
{
|
||||
g_dataModel->getJointsService()->remove();
|
||||
dJointGroupDestroy (contactgroup);
|
||||
dSpaceDestroy (physSpace);
|
||||
dWorldDestroy (physWorld);
|
||||
|
||||
Reference in New Issue
Block a user