mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-26 09:20:35 +05:00
Debug for material colors with OCCT-7.4.0
This commit is contained in:
parent
7c35075817
commit
2ea12bde89
@ -401,6 +401,11 @@ QColor Material_Model::color( ReflectionType type ) const
|
|||||||
QColor value;
|
QColor value;
|
||||||
if ( type >= 0 && type < 4 )
|
if ( type >= 0 && type < 4 )
|
||||||
value = myReflection[ type ].color;
|
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;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user