Salome HOME
Porting Salome to OCCT 7.7.0
authorjfa <jfa@opencascade.com>
Mon, 27 Feb 2023 09:45:46 +0000 (09:45 +0000)
committerjfa <jfa@opencascade.com>
Mon, 27 Feb 2023 09:45:46 +0000 (09:45 +0000)
src/ViewerData/ViewerData_AISShape.cxx

index 2744a851bb12e9dece0ad2cbfb0e3b61d613cf2f..aab4f016ca071ff77ee463fd1139de74cf123f81 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "ViewerData_AISShape.hxx"
 
+#include <Basics_OCCTVersion.hxx>
+
 IMPLEMENT_STANDARD_RTTIEXT(ViewerData_AISShape, AIS_ColoredShape)
 
 /*!
@@ -32,6 +34,9 @@ ViewerData_AISShape::ViewerData_AISShape(const TopoDS_Shape& theShape)
 : AIS_ColoredShape(theShape),
   myIsClippable(true)
 {
+#if OCC_VERSION_LARGE >= 0x07070000
+  myDrawer->SetupOwnDefaults();
+#endif
 }
 
 /*!