From 91d9671bbb4bff3b80b999493d06bea8e4e4b65f Mon Sep 17 00:00:00 2001 From: mzn Date: Mon, 2 Dec 2013 14:45:18 +0000 Subject: [PATCH] Bug #89: Suppress isos on Image in OCC viewer. --- src/HYDROGUI/HYDROGUI_Shape.cxx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index 0bb923b5..adbed367 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -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() ) { -- 2.39.2