From: gdd Date: Wed, 26 Oct 2011 13:09:55 +0000 (+0000) Subject: rnc: small bug fix X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=677c061c6e8b5da3b0006c675bfba0563a6bd3be;p=modules%2Fgeom.git rnc: small bug fix --- 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