]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Ignore Field Step object in inspection panel
authorvsv <vsv@opencascade.com>
Thu, 27 Jun 2019 16:38:07 +0000 (19:38 +0300)
committervsv <vsv@opencascade.com>
Thu, 27 Jun 2019 16:38:07 +0000 (19:38 +0300)
src/XGUI/XGUI_InspectionPanel.cpp

index c77f750b8524e48113a57d159d2d98006cf6ee26..ceddb10246bb549a4b4688007c259bf59acda80e 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <ModuleBase_ViewerPrs.h>
 #include <ModuleBase_Tools.h>
+#include <ModelAPI_ResultField.h>
 
 #include <ModelAPI_Result.h>
 
@@ -228,6 +229,10 @@ void XGUI_InspectionPanel::onSelectionChanged()
 
   if (aSelectedList.count() > 0) {
     ModuleBase_ViewerPrsPtr aPrs = aSelectedList.first();
+    FieldStepPtr aStep =
+      std::dynamic_pointer_cast<ModelAPI_ResultField::ModelAPI_FieldStep>(aPrs->object());
+    if (aStep)
+      return;
     TopoDS_Shape aShape = ModuleBase_Tools::getSelectedShape(aPrs);
     if (aShape.IsNull()) {
       ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(aPrs->object());