From: mzn Date: Mon, 2 Dec 2013 14:45:18 +0000 (+0000) Subject: Bug #89: Suppress isos on Image in OCC viewer. X-Git-Tag: BR_hydro_v_0_4~97 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=91d9671bbb4bff3b80b999493d06bea8e4e4b65f;p=modules%2Fhydro.git Bug #89: Suppress isos on Image in OCC viewer. --- 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() ) {