fixed bug where scrubbed frames would be cached but not committed to the hashmap

This commit is contained in:
itsmattkc
2020-01-17 18:13:49 +11:00
parent 3c139b8274
commit e6b45c75c3
4 changed files with 44 additions and 41 deletions
+4 -2
View File
@@ -415,15 +415,17 @@ void ViewerWidget::PlaybackTimerUpdate()
void ViewerWidget::RendererCachedFrame(const rational &time, QVariant value, qint64 job_time)
{
if (GetTime() == time) {
SetTexture(value.value<OpenGLTexturePtr>());
frame_cache_job_time_ = job_time;
SetTexture(value.value<OpenGLTexturePtr>());
}
}
void ViewerWidget::RendererCachedTime(const rational &time, qint64 job_time)
{
if (GetTime() == time && job_time > frame_cache_job_time_) {
frame_cache_job_time_ = job_time;
UpdateTextureFromNode(GetTime());
}
}