Commit 1675ed75 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

keep track of lod/full-res timestamps separately.

vtkSMDataDeliveryManager needs to keep track of lod/non-lod delivery
timestamps separately as the same delivery mode may be used for both.
Fixes #18419.
parent df38248e
......@@ -64,7 +64,9 @@ void vtkSMDataDeliveryManager::Deliver(bool interactive)
vtkMTimeType update_ts = view->GetUpdateTimeStamp();
// note: this will create new vtkTimeStamp, if needed.
vtkTimeStamp& timeStamp = this->DeliveryTimestamps[data_distribution_mode];
vtkTimeStamp& timeStamp = use_lod ? this->DeliveryTimestampsLOD[data_distribution_mode]
: this->DeliveryTimestamps[data_distribution_mode];
if (timeStamp > update_ts)
{
// we have delivered the data since the last update on this view for the
......
......@@ -70,6 +70,7 @@ protected:
vtkWeakPointer<vtkSMViewProxy> ViewProxy;
std::map<int, vtkTimeStamp> DeliveryTimestamps;
std::map<int, vtkTimeStamp> DeliveryTimestampsLOD;
private:
vtkSMDataDeliveryManager(const vtkSMDataDeliveryManager&) = delete;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment