From: rnv Date: Tue, 25 Feb 2020 15:24:52 +0000 (+0300) Subject: Debug for material colors with OCCT-7.4.0 X-Git-Tag: V9_5_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2ea12bde8990413e2341dfe63b0b98cd8434f460;p=modules%2Fgeom.git Debug for material colors with OCCT-7.4.0 --- diff --git a/src/Material/Material_Model.cxx b/src/Material/Material_Model.cxx index 5ab3d6e35..869e40dfb 100644 --- a/src/Material/Material_Model.cxx +++ b/src/Material/Material_Model.cxx @@ -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; }