]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the bug "IPAL22514 TC6.3.0: Post-Pro Preferences - Representation: Use Shadin... V6_3_0 V6_3_0b2 V6_3_0rc1
authorrnv <rnv@opencascade.com>
Thu, 19 May 2011 13:15:13 +0000 (13:15 +0000)
committerrnv <rnv@opencascade.com>
Thu, 19 May 2011 13:15:13 +0000 (13:15 +0000)
src/VISU_I/VISU_IsoSurfaces_i.cc

index 6451074709d0080316341473154f99995b2d2d2c..7d0f3084fe3330e699b067a5ed0c8560cb6a4dcc 100644 (file)
@@ -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();