]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0020870: EDF 1410 VISU: Anomaly in the Gauss point representation RELIQUAT_5x_15112010 mergeto_V6_2_BR_10Dec10
authorvsr <vsr@opencascade.com>
Wed, 1 Dec 2010 15:04:39 +0000 (15:04 +0000)
committervsr <vsr@opencascade.com>
Wed, 1 Dec 2010 15:04:39 +0000 (15:04 +0000)
Additional fix for animation

src/VISUGUI/VisuGUI_TimeAnimation.cxx

index bfbcfc7ae00eebc1d4e3012cc3b639736c0c5147..0582735ad0d78d55a0be3b7f500d4ce60b190c19 100644 (file)
@@ -130,7 +130,16 @@ namespace {
         if(aDeformedAndScalPrs){
           aTimeStampNum = aDeformedAndScalPrs->GetScalarTimeStampNumber();
         }
+
         aColoredPrs3d->SameAs(aInitialPrs3d);
+       
+       // rnv: fix for the 20870: EDF 1410 VISU: Anomaly in the Gauss point representation.
+       // special case for the "Gauss Points" presentation,
+       // update the LookupTable in the mapper, after assign properties of the presentation
+       // using SameAs(...) method.
+       if(aFieldData.myPrsType == VISU::TGAUSSPOINTS) {
+         aColoredPrs3d->UpdateMapperLookupTable();
+       }
 
         if(aDeformedAndScalPrs){
           aDeformedAndScalPrs->SetScalarField(aDeformedAndScalPrs->GetScalarEntity(),