Gui: hide the gizmos in case of any errors
This commit is contained in:
committed by
Chris Hennes
parent
014edacf1b
commit
a678d8ec7f
@@ -399,11 +399,12 @@ void TaskChamferParameters::setGizmoPositions()
|
||||
}
|
||||
|
||||
auto chamfer = getObject<PartDesign::Chamfer>();
|
||||
if (!chamfer) {
|
||||
if (!chamfer || chamfer->isError()) {
|
||||
gizmoContainer->visible = false;
|
||||
return;
|
||||
}
|
||||
auto baseShape = chamfer->getBaseTopoShape();
|
||||
|
||||
PartDesign::TopoShape baseShape = chamfer->getBaseTopoShape(true);
|
||||
auto shapes = chamfer->getContinuousEdges(baseShape);
|
||||
|
||||
if (shapes.size() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user