From e95d0ad51dd17378416e59b1ec09c7ab65cf4975 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 21 Dec 2006 15:09:24 +0000 Subject: [PATCH] To fix the bug with magnification --- src/VISU_I/VISU_Prs3d_i.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.39.2