From: apo Date: Mon, 31 Jan 2005 13:46:34 +0000 (+0000) Subject: Fix on Bug PAL7927 X-Git-Tag: V2_2_0b2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48d5ec677f0df3ad0bd8dfc1c1c092b9efaf952d;p=modules%2Fvisu.git Fix on Bug PAL7927 REGRESSION: It is an incorrect import of the MED file and incorrect coloring of the scalar map. (Previous coloring was recovered) --- diff --git a/src/OBJECT/VISU_ScalarMapAct.cxx b/src/OBJECT/VISU_ScalarMapAct.cxx index d50fc26c..6323ce13 100644 --- a/src/OBJECT/VISU_ScalarMapAct.cxx +++ b/src/OBJECT/VISU_ScalarMapAct.cxx @@ -39,9 +39,12 @@ VISU_ScalarMapAct::VISU_ScalarMapAct(){ myScalarBar = VISU_ScalarBarActor::New(); vtkProperty* aProperty = GetProperty(); - aProperty->SetAmbient(1.0); - aProperty->SetDiffuse(0.0); - aProperty->SetSpecular(0.0); + aProperty->SetAmbient(0.5); + aProperty->SetDiffuse(0.2); + aProperty->SetSpecular(0.2); + //aProperty->SetAmbient(1.0); + //aProperty->SetDiffuse(0.0); + //aProperty->SetSpecular(0.0); myProperty->DeepCopy(aProperty); }