From 677c061c6e8b5da3b0006c675bfba0563a6bd3be Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 26 Oct 2011 13:09:55 +0000 Subject: [PATCH] rnc: small bug fix --- src/GEOMGUI/GEOM_Displayer.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 2769ab63d..8f3ef0cd9 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -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 -- 2.39.2