Gui: hide the gizmos in case of any errors
This commit is contained in:
committed by
Chris Hennes
parent
014edacf1b
commit
a678d8ec7f
@@ -740,6 +740,11 @@ void TaskHelixParameters::setGizmoPositions()
|
||||
}
|
||||
|
||||
auto helix = getObject<PartDesign::Helix>();
|
||||
if (!helix || helix->isError()) {
|
||||
gizmoContainer->visible = false;
|
||||
return;
|
||||
}
|
||||
gizmoContainer->visible = true;
|
||||
Part::TopoShape profileShape = helix->getProfileShape();
|
||||
double reversed = propReversed->getValue()? -1.0 : 1.0;
|
||||
auto profileCentre = getMidPointFromProfile(profileShape);
|
||||
|
||||
Reference in New Issue
Block a user