buildFeaturePane(aFeature);
}
else {
- myStackWgt->setCurrentIndex(myShapePanelId);
TopoDS_Shape aShape = ModuleBase_Tools::getSelectedShape(aPrs);
if (aShape.IsNull()) {
ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(aPrs->object());
}
}
}
- if (aShape.IsNull())
+ if (aShape.IsNull()) {
+ myStackWgt->setCurrentIndex(myFeaturePanelId);
return;
+ }
+ myStackWgt->setCurrentIndex(myShapePanelId);
GeomShapePtr aShapePtr(new GeomAPI_Shape());
aShapePtr->setImpl(new TopoDS_Shape(aShape));