0003897: 'View Sketch' button doesn't account for container transform

This commit is contained in:
wmayer
2019-03-11 12:54:26 +01:00
parent 435d06ab45
commit a57504afb9

View File

@@ -614,7 +614,7 @@ void CmdSketcherViewSketch::activated(int iMsg)
Gui::Document *doc = getActiveGuiDocument();
SketcherGui::ViewProviderSketch* vp = dynamic_cast<SketcherGui::ViewProviderSketch*>(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());
}
}