From: ouv Date: Thu, 21 Dec 2006 15:09:24 +0000 (+0000) Subject: To fix the bug with magnification X-Git-Tag: WP1_2_3_25-12-2006_persistent_for_cache~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e95d0ad51dd17378416e59b1ec09c7ab65cf4975;p=modules%2Fvisu.git To fix the bug with magnification --- diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index 26437f6b..1f580b26 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -233,8 +233,14 @@ VISU::Prs3d_i ::GetMTime() { unsigned long int aTime = myParamsTime.GetMTime(); - if(IsPipeLineExists()) + if(IsPipeLineExists()){ aTime = std::max(aTime,GetPipeLine()->GetMTime()); + // To correct modification time by actors + int anEnd = myActorCollection->GetNumberOfItems(); + for(int anId = 0; anId < anEnd; anId++) + if(vtkObject* anObject = myActorCollection->GetItemAsObject(anId)) + aTime = std::max(aTime,anObject->GetMTime()); + } return aTime; }