From 7c2b91cfdcba7f19e8323f5ca640bb82e06e8160 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 10 Mar 2023 22:21:07 +0100 Subject: [PATCH] PD: do not record Gui command as Doc command --- src/Mod/PartDesign/Gui/Utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/Utils.cpp b/src/Mod/PartDesign/Gui/Utils.cpp index 16a1ac9813..e7e11f90c7 100644 --- a/src/Mod/PartDesign/Gui/Utils.cpp +++ b/src/Mod/PartDesign/Gui/Utils.cpp @@ -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()->