Part/Sketcher: Grid - set grid orientation

==========================================

Extend ViewProviderGridExtension so that it is aware of the absolute direction of the XY plane on which the grid is to be drawn.

Fix the calculation of the cam origin.
This commit is contained in:
Abdullah Tahiri
2023-02-25 20:38:24 +01:00
committed by abdullahtahiriyo
parent b4926c769e
commit 849f8ced13
3 changed files with 55 additions and 10 deletions

View File

@@ -2844,6 +2844,8 @@ bool ViewProviderSketch::setEdit(int ModNum)
this->attachSelection();
auto gridnode = getGridNode();
Base::Placement plm = getEditingPlacement();
setGridOrientation(plm.getPosition(), plm.getRotation());
addNodeToRoot(gridnode);
setGridEnabled(true);