timebased: set connected node before processing

Fixes #1775
This commit is contained in:
itsmattkc
2021-10-21 13:57:49 -07:00
parent 348d7eb946
commit be24e7e580
3 changed files with 16 additions and 10 deletions
+2 -1
View File
@@ -51,9 +51,10 @@ void FootageViewerWidget::DisconnectNodeEvent(ViewerOutput *n)
{
// Cache timestamp in case this footage is opened again later
cached_timestamps_.insert(n, GetTime());
SetTime(0);
super::DisconnectNodeEvent(n);
SetTime(0);
}
void FootageViewerWidget::StartFootageDragInternal(bool enable_video, bool enable_audio)
+4
View File
@@ -532,6 +532,10 @@ void ViewerWidget::ForceRequeueFromCurrentTime()
void ViewerWidget::UpdateTextureFromNode()
{
if (!GetConnectedNode()) {
return;
}
rational time = GetTime();
bool frame_exists_at_time = FrameExistsAtTime(time);
bool frame_might_be_still = ViewerMightBeAStill();