Gui: hide the gizmos in case of any errors
This commit is contained in:
committed by
Chris Hennes
parent
014edacf1b
commit
a678d8ec7f
@@ -1233,6 +1233,10 @@ void TaskHoleParameters::setGizmoPositions()
|
||||
}
|
||||
|
||||
auto hole = getObject<PartDesign::Hole>();
|
||||
if (!hole || hole->isError()) {
|
||||
gizmoContainer->visible = false;
|
||||
return;
|
||||
}
|
||||
Part::TopoShape profileShape = hole->getProfileShape(
|
||||
Part::ShapeOption::NeedSubElement |
|
||||
Part::ShapeOption::ResolveLink |
|
||||
|
||||
Reference in New Issue
Block a user