mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-05 02:34:18 +05:00
rnc: small bug fix
This commit is contained in:
parent
bb8729db00
commit
677c061c6e
@ -727,14 +727,7 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( HasTexture() )
|
||||
{
|
||||
AISShape->SetTextureFileName(TCollection_AsciiString(myTexture.c_str()));
|
||||
AISShape->SetTextureMapOn();
|
||||
AISShape->DisableTextureModulate();
|
||||
AISShape->SetDisplayMode(3);
|
||||
// AISShape->SetDisplayMode( (Standard_Integer) StdSelect_DM_HLR );
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if ( onlyVertex )
|
||||
@ -822,6 +815,14 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
|
||||
}
|
||||
}
|
||||
|
||||
if ( HasTexture() )
|
||||
{
|
||||
AISShape->SetTextureFileName(TCollection_AsciiString(myTexture.c_str()));
|
||||
AISShape->SetTextureMapOn();
|
||||
AISShape->DisableTextureModulate();
|
||||
AISShape->SetDisplayMode(3);
|
||||
}
|
||||
|
||||
if ( HasWidth() )
|
||||
AISShape->SetWidth( GetWidth() );
|
||||
|
||||
@ -921,7 +922,6 @@ void GEOM_Displayer::Update( SALOME_OCCPrs* prs )
|
||||
}
|
||||
}
|
||||
// AISShape->SetName(???); ??? necessary to set name ???
|
||||
// AISShape->SetDisplayMode(3);
|
||||
occPrs->AddObject( AISShape );
|
||||
|
||||
// In accordance with ToActivate() value object will be activated/deactivated
|
||||
|
Loading…
Reference in New Issue
Block a user