From 84bb1e8e64bc46cc00a66464742d7cd35932b9cf Mon Sep 17 00:00:00 2001 From: sln Date: Wed, 23 Apr 2008 07:38:11 +0000 Subject: [PATCH] NPAL19303: EDF 677 VISU : Time Stamps are mixed during ScalaMapOnDeformedShape presentations UpdateLastVisitedPrs() method is updated. SetScalarField() method is called for scalar map on deformed shape in order to provide correct time stamp --- src/VISU_I/VISU_ColoredPrs3dCache_i.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc index 45ace2f3..6b1143a2 100644 --- a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc @@ -651,7 +651,16 @@ VISU::ColoredPrs3dCache_i //if(MYDEBUG) PrintCache(); aPrs3d->SameAs(thePrs); - aPrs3d->UpdateActors(); + + // special case for deformed shape + VISU::ScalarMapOnDeformedShape_i* dShape = + dynamic_cast( aPrs3d.get() ); + if ( dShape && dShape->GetScalarTimeStampNumber() != theInput.myTimeStampNumber ) + { + dShape->SetScalarField( dShape->GetScalarEntity(), + dShape->GetFieldName(), theInput.myTimeStampNumber ); + } + if(CORBA::is_nil(theView3D)) return false; @@ -695,6 +704,8 @@ VISU::ColoredPrs3dCache_i aPrs3d->SetActiveState(true); } + + aPrs3d->UpdateActors(); ProcessVoidEvent(new TRenderEvent(aViewWindow)); //aViewWindow->getRenderWindow()->Render(); return true; -- 2.39.2