Salome HOME
Merge branch 'master' of https://codev-tuleap.cea.fr/plugins/git/salome/geom V9_5_0a1
authorrnv <rnv@opencascade.com>
Tue, 25 Feb 2020 15:25:08 +0000 (18:25 +0300)
committerrnv <rnv@opencascade.com>
Tue, 25 Feb 2020 15:25:08 +0000 (18:25 +0300)
src/Material/Material_Model.cxx

index 5ab3d6e35f7ad8903a90d0af665abfc03d3faced..869e40dfbd52e5a55ae8167ca4034d7914f96c2c 100644 (file)
@@ -401,6 +401,11 @@ QColor Material_Model::color( ReflectionType type ) const
   QColor value;
   if ( type >= 0 && type < 4 )
     value = myReflection[ type ].color;
+#if OCC_VERSION_LARGE >= 0x07040000
+  // Compatibility with previous OCCT versions, set for non-physical materials always white color
+  if ( !isPhysical() )
+    value = Qt::white;
+#endif
   return value;
 }