Fix for '#18490 GEOM build fail with master branch' issue.

This commit is contained in:
rnv 2019-12-18 11:38:29 +03:00
parent d07a864e83
commit 63cf6cca2e

View 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 ) )