mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-11 04:43:08 +05:00
"0021391: EDF 1630 GEOM: Specific color when editing a group" issue: small fix associated with physical materials.
This commit is contained in:
parent
239c5042da
commit
8790b4de04
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user