Navigation Menu

Skip to content

Commit

Permalink
0003897: 'View Sketch' button doesn't account for container transform
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 11, 2019
1 parent 4a1c04e commit 568faf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/Gui/Command.cpp
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 568faf6

Please sign in to comment.