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:
committed by
abdullahtahiriyo
parent
b4926c769e
commit
849f8ced13
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user