0003897: 'View Sketch' button doesn't account for container transform
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user