From: rnv Date: Thu, 19 May 2011 13:15:13 +0000 (+0000) Subject: Fix for the bug "IPAL22514 TC6.3.0: Post-Pro Preferences - Representation: Use Shadin... X-Git-Tag: V6_3_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a1df69cb6b083dd4707d261e81bb0b42ea85a16c;p=modules%2Fvisu.git Fix for the bug "IPAL22514 TC6.3.0: Post-Pro Preferences - Representation: Use Shading preference is ignored for Iso Surfaces". --- diff --git a/src/VISU_I/VISU_IsoSurfaces_i.cc b/src/VISU_I/VISU_IsoSurfaces_i.cc index 64510747..7d0f3084 100644 --- a/src/VISU_I/VISU_IsoSurfaces_i.cc +++ b/src/VISU_I/VISU_IsoSurfaces_i.cc @@ -293,7 +293,9 @@ VISU_Actor* VISU::IsoSurfaces_i::CreateActor() anActor->SetVTKMapping(true); SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); int aDispMode = aResourceMgr->integerValue("VISU" , "iso_surfaces_represent", 2); + bool toUseShading = aResourceMgr->booleanValue("VISU", "represent_shading", false); anActor->SetRepresentation(aDispMode); + anActor->SetShading(toUseShading); UpdateActor(anActor); }catch(...){ anActor->Delete();