"0021391: EDF 1630 GEOM: Specific color when editing a group" issue: small fix associated with physical materials.

This commit is contained in:
ana 2013-02-06 13:01:06 +00:00
parent 239c5042da
commit 8790b4de04

View File

@ -597,6 +597,8 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
// set material
Material_Model material;
// if predefined color isn't set in displayer(via GEOM_Displayer::SetColor() function)
if( !HasColor() )
material.fromProperties( propMap.value( GEOM::propertyName( GEOM::Material ) ).toString() );
// - set front material properties
AISShape->SetCurrentFacingModel( Aspect_TOFM_FRONT_SIDE );