::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;
}