Open new place crash workaround
Reloads jointsservice on place open
This commit is contained in:
@@ -504,8 +504,12 @@ bool DataModelInstance::load(const char* filename, bool clearObjects)
|
|||||||
std::string tname = hname.substr(0, hname.length() - 5);
|
std::string tname = hname.substr(0, hname.length() - 5);
|
||||||
name = tname;
|
name = tname;
|
||||||
resetEngine();
|
resetEngine();
|
||||||
|
//HACK: we need to reset JointsService but there is no good way to do it in XplicitNgine code
|
||||||
|
jointsService = new JointsService();
|
||||||
|
jointsService->setParent(this);
|
||||||
selectionService->clearSelection();
|
selectionService->clearSelection();
|
||||||
selectionService->addSelected(this);
|
selectionService->addSelected(this);
|
||||||
|
jointsService->solveWorkspaceSnaps();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user