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()
|
XplicitNgine::~XplicitNgine()
|
||||||
{
|
{
|
||||||
|
g_dataModel->getJointsService()->remove();
|
||||||
dJointGroupDestroy (contactgroup);
|
dJointGroupDestroy (contactgroup);
|
||||||
dSpaceDestroy (physSpace);
|
dSpaceDestroy (physSpace);
|
||||||
dWorldDestroy (physWorld);
|
dWorldDestroy (physWorld);
|
||||||
|
|||||||
Reference in New Issue
Block a user