]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix for '#18490 GEOM build fail with master branch' issue.
authorrnv <rnv@opencascade.com>
Wed, 18 Dec 2019 08:38:29 +0000 (11:38 +0300)
committerrnv <rnv@opencascade.com>
Wed, 18 Dec 2019 08:38:29 +0000 (11:38 +0300)
src/Material/Material_Model.cxx

index 8f66ac34a3c31f3fc0eb4681113b5f788d8ebbda..5ab3d6e35f7ad8903a90d0af665abfc03d3faced 100644 (file)
@@ -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 ) )