]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
rnc: small bug fix
authorgdd <gdd>
Wed, 26 Oct 2011 13:09:55 +0000 (13:09 +0000)
committergdd <gdd>
Wed, 26 Oct 2011 13:09:55 +0000 (13:09 +0000)
src/GEOMGUI/GEOM_Displayer.cxx

index 2769ab63dee9e98aa70eeacdc0e130d3b18da1b5..8f3ef0cd971fbd1b25ddf4be3fbe491faaedf14a 100644 (file)
@@ -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