]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To fix the bug with magnification
authorouv <ouv@opencascade.com>
Thu, 21 Dec 2006 15:09:24 +0000 (15:09 +0000)
committerouv <ouv@opencascade.com>
Thu, 21 Dec 2006 15:09:24 +0000 (15:09 +0000)
src/VISU_I/VISU_Prs3d_i.cc

index 26437f6ba39d56928b1f153eedfe2d2993df636b..1f580b266a69e1b0d62b1bffbe33179b2a6862e0 100644 (file)
@@ -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;
 }