]> SALOME platform Git repositories - modules/hexablock.git/commitdiff
Salome HOME
OCCT dev compatibility V7_6_0b1
authorvsr <vsr@opencascade.com>
Thu, 9 Apr 2015 06:10:40 +0000 (09:10 +0300)
committervsr <vsr@opencascade.com>
Thu, 9 Apr 2015 06:10:40 +0000 (09:10 +0300)
src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx

index 2505c56a047eb2495cbbecfe2b86108feae432c7..5dedbd805a86b7eceaaa088c5b96e9dd76c19602 100644 (file)
@@ -28,7 +28,7 @@
 #include <vtkActorCollection.h>
 #include <vtkUnstructuredGrid.h>
 
-
+#include <Basics_OCCTVersion.hxx>
 
 #include <SUIT_Session.h>
 
@@ -175,7 +175,14 @@ namespace GUI
                        Handle(SelectMgr_Selection) sel = theObj->Selection( m );
 
                        for ( sel->Init(); sel->More(); sel->Next() ) {
+#if OCC_VERSION_LARGE > 0x06080100
+                                const SelectMgr_HSensitiveEntity aHSenEntity = sel->Sensitive();
+                                if ( aHSenEntity.IsNull() )
+                                        continue;
+                                Handle(SelectBasics_SensitiveEntity) entity = aHSenEntity->BaseSensitive();
+#else
                                Handle(SelectBasics_SensitiveEntity) entity = sel->Sensitive();
+#endif
                                if ( entity.IsNull() )
                                        continue;