]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #89: Suppress isos on Image in OCC viewer.
authormzn <mzn@opencascade.com>
Mon, 2 Dec 2013 14:45:18 +0000 (14:45 +0000)
committermzn <mzn@opencascade.com>
Mon, 2 Dec 2013 14:45:18 +0000 (14:45 +0000)
src/HYDROGUI/HYDROGUI_Shape.cxx

index 0bb923b57f4e1573db4be1bd47fb17b3d6446f51..adbed36710e04d0a30fd0d3a854943331d80ab82 100644 (file)
@@ -534,16 +534,20 @@ void HYDROGUI_Shape::buildShape()
   const Handle(AIS_Drawer)& anAttributes = myShape->Attributes();
   if ( !anAttributes.IsNull() )
   {
-    if ( myDisplayMode == AIS_Shaded )
-    {
-      Handle(Prs3d_IsoAspect) anIsoAspect = anAttributes->UIsoAspect();
-      if ( !anIsoAspect.IsNull() )
-        anIsoAspect->SetNumber( 0 );
+    Handle(Prs3d_IsoAspect) anIsoAspect = anAttributes->UIsoAspect();
+    if ( !anIsoAspect.IsNull() ) {
+      anIsoAspect->SetNumber( 0 );
+      anAttributes->SetUIsoAspect( anIsoAspect );
+    }
       
-      anIsoAspect = anAttributes->VIsoAspect();
-      if ( !anIsoAspect.IsNull() )
-        anIsoAspect->SetNumber( 0 );
+    anIsoAspect = anAttributes->VIsoAspect();
+    if ( !anIsoAspect.IsNull() ) {
+      anIsoAspect->SetNumber( 0 );
+      anAttributes->SetVIsoAspect( anIsoAspect );
+    }
 
+    if ( myDisplayMode == AIS_Shaded )
+    {
       Handle(Prs3d_ShadingAspect) aShadingAspect = anAttributes->ShadingAspect();
       if ( !aShadingAspect.IsNull() )
       {