From: mzn Date: Thu, 27 Jul 2006 13:43:06 +0000 (+0000) Subject: Fix for bug IPAL12377. X-Git-Tag: For_OCT_611~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9c457e03463ca7c4787501dcfd1a553ba5a5c0e9;p=modules%2Fvisu.git Fix for bug IPAL12377. --- diff --git a/src/VISU_I/VISU_Vectors_i.cc b/src/VISU_I/VISU_Vectors_i.cc index 1ab9c254..c8bd8a59 100644 --- a/src/VISU_I/VISU_Vectors_i.cc +++ b/src/VISU_I/VISU_Vectors_i.cc @@ -198,7 +198,9 @@ VISU_Actor* VISU::Vectors_i::CreateActor(const Handle(SALOME_InteractiveObject)& anActor->GetProperty()->SetLineWidth(GetLineWidth()); SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); int aDispMode = aResourceMgr->integerValue("VISU", "vectors_represent", 1); + bool toUseShading = aResourceMgr->booleanValue("VISU", "represent_shading", false); anActor->SetRepresentation(aDispMode); + anActor->SetShading(toUseShading); UpdateActor(anActor); }catch(...){ anActor->Delete();