Gui: hide the gizmos in case of any errors
This commit is contained in:
committed by
Chris Hennes
parent
c8fb2d1ae0
commit
4f537151a2
@@ -1390,6 +1390,12 @@ void TaskExtrudeParameters::setGizmoPositions()
|
||||
}
|
||||
|
||||
auto extrude = getObject<PartDesign::FeatureExtrude>();
|
||||
if (!extrude || extrude->isError()) {
|
||||
gizmoContainer->visible = false;
|
||||
return;
|
||||
}
|
||||
gizmoContainer->visible = true;
|
||||
|
||||
PartDesign::TopoShape shape = extrude->getProfileShape();
|
||||
Base::Vector3d center = getMidPointFromProfile(shape);
|
||||
std::string sideType = std::string(extrude->SideType.getValueAsString());
|
||||
|
||||
Reference in New Issue
Block a user