PD: do not record Gui command as Doc command

This commit is contained in:
wmayer
2023-03-10 22:21:07 +01:00
committed by wwmayer
parent 651029e774
commit 7c2b91cfdc

View File

@@ -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()->