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