[Sketcher] Grid is displayed in 3D view only if sketch is visible
This commit is contained in:
committed by
abdullahtahiriyo
parent
811a44643c
commit
da33ffc062
@@ -258,8 +258,8 @@ void ViewProvider2DObject::onChanged(const App::Property* prop)
|
||||
// call father
|
||||
ViewProviderPart::onChanged(prop);
|
||||
|
||||
if (prop == &ShowGrid) {
|
||||
if (ShowGrid.getValue())
|
||||
if (prop == &ShowGrid || prop == &Visibility) {
|
||||
if (ShowGrid.getValue() && Visibility.getValue())
|
||||
createGrid();
|
||||
else
|
||||
Gui::coinRemoveAllChildren(GridRoot);
|
||||
|
||||
Reference in New Issue
Block a user