From 627bd194613dfc2a237720c962f33c56d331766f Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 27 Jun 2019 19:38:07 +0300 Subject: [PATCH] Ignore Field Step object in inspection panel --- src/XGUI/XGUI_InspectionPanel.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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()); -- 2.39.2