]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL12377.
authormzn <mzn@opencascade.com>
Thu, 27 Jul 2006 13:43:06 +0000 (13:43 +0000)
committermzn <mzn@opencascade.com>
Thu, 27 Jul 2006 13:43:06 +0000 (13:43 +0000)
src/VISU_I/VISU_Vectors_i.cc

index 1ab9c2549a4970939ee0140343d0d10caa6ae874..c8bd8a59f34e3b2f0bef0809fb6743327752d121 100644 (file)
@@ -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();