From: rnv Date: Wed, 18 Dec 2019 08:38:29 +0000 (+0300) Subject: Fix for '#18490 GEOM build fail with master branch' issue. X-Git-Tag: V9_5_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=63cf6cca2e3be5bd789377915bfc9ab1ea07f733;p=modules%2Fgeom.git Fix for '#18490 GEOM build fail with master branch' issue. --- diff --git a/src/Material/Material_Model.cxx b/src/Material/Material_Model.cxx index 8f66ac34a..5ab3d6e35 100644 --- a/src/Material/Material_Model.cxx +++ b/src/Material/Material_Model.cxx @@ -569,7 +569,7 @@ Graphic3d_MaterialAspect Material_Model::getMaterialOCCAspect( bool theIsFront ) #else if ( color( Ambient ).isValid() ) { c = color( Ambient ); - aspect.SetAmbientColor( ( c.redF(), c.greenF(), c.blueF(), Quantity_TOC_RGB ) ); + aspect.SetAmbientColor( Quantity_Color( c.redF(), c.greenF(), c.blueF(), Quantity_TOC_RGB ) ); } aspect.SetAmbient( reflection( Ambient, theIsFront )); if ( hasReflection( Ambient ) )