Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
d05f7ac
)
Merge branch 'master' of https://codev-tuleap.cea.fr/plugins/git/salome/geom
V9_5_0a1
author
rnv
<rnv@opencascade.com>
Tue, 25 Feb 2020 15:25:08 +0000
(18:25 +0300)
committer
rnv
<rnv@opencascade.com>
Tue, 25 Feb 2020 15:25:08 +0000
(18:25 +0300)
src/Material/Material_Model.cxx
patch
|
blob
|
history
diff --git
a/src/Material/Material_Model.cxx
b/src/Material/Material_Model.cxx
index 5ab3d6e35f7ad8903a90d0af665abfc03d3faced..869e40dfbd52e5a55ae8167ca4034d7914f96c2c 100644
(file)
--- 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;
}