PD: do not record Gui command as Doc command
This commit is contained in:
@@ -153,7 +153,8 @@ PartDesign::Body * makeBodyActive(App::DocumentObject *body, App::Document *doc,
|
||||
|
||||
if(body) {
|
||||
auto _doc = parent?parent->getDocument():body->getDocument();
|
||||
_FCMD_DOC_CMD(Gui, _doc, "ActiveView.setActiveObject('" << PDBODYKEY
|
||||
Gui::cmdGuiDocument(_doc, std::stringstream()
|
||||
<< "ActiveView.setActiveObject('" << PDBODYKEY
|
||||
<< "'," << Gui::Command::getObjectCmd(parent?parent:body)
|
||||
<< ",'" << sub << "')");
|
||||
return Gui::Application::Instance->activeView()->
|
||||
|
||||
Reference in New Issue
Block a user