From 568faf67a05454125db21452c35ce915bceb05cb Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 11 Mar 2019 12:54:26 +0100 Subject: [PATCH] 0003897: 'View Sketch' button doesn't account for container transform --- src/Mod/Sketcher/Gui/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/Command.cpp b/src/Mod/Sketcher/Gui/Command.cpp index a4952dafa5..47f982a1ba 100644 --- a/src/Mod/Sketcher/Gui/Command.cpp +++ b/src/Mod/Sketcher/Gui/Command.cpp @@ -614,7 +614,7 @@ void CmdSketcherViewSketch::activated(int iMsg) Gui::Document *doc = getActiveGuiDocument(); SketcherGui::ViewProviderSketch* vp = dynamic_cast(doc->getInEdit()); if (vp) { - doCommand(Gui,"Gui.ActiveDocument.ActiveView.setCameraOrientation(App.ActiveDocument.%s.Placement.Rotation.Q)" + doCommand(Gui,"Gui.ActiveDocument.ActiveView.setCameraOrientation(App.ActiveDocument.%s.getGlobalPlacement().Rotation.Q)" ,vp->getObject()->getNameInDocument()); } }