From: vsv Date: Thu, 27 Jun 2019 16:38:07 +0000 (+0300) Subject: Ignore Field Step object in inspection panel X-Git-Tag: VEDF2019Lot4~103^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=627bd194613dfc2a237720c962f33c56d331766f;p=modules%2Fshaper.git Ignore Field Step object in inspection panel --- diff --git a/src/XGUI/XGUI_InspectionPanel.cpp b/src/XGUI/XGUI_InspectionPanel.cpp index c77f750b8..ceddb1024 100644 --- a/src/XGUI/XGUI_InspectionPanel.cpp +++ b/src/XGUI/XGUI_InspectionPanel.cpp @@ -24,6 +24,7 @@ #include #include +#include #include @@ -228,6 +229,10 @@ void XGUI_InspectionPanel::onSelectionChanged() if (aSelectedList.count() > 0) { ModuleBase_ViewerPrsPtr aPrs = aSelectedList.first(); + FieldStepPtr aStep = + std::dynamic_pointer_cast(aPrs->object()); + if (aStep) + return; TopoDS_Shape aShape = ModuleBase_Tools::getSelectedShape(aPrs); if (aShape.IsNull()) { ResultPtr aRes = std::dynamic_pointer_cast(aPrs->object());