From b0a5d4f4c3fb8b891e0004aeb8770157e248cece Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 24 Jun 2020 01:36:04 +1000 Subject: [PATCH] parampanel: set input after timestamp Default TimeBasedWidget behavior is to jump to the playhead, but we want the CurveView to zoom fit on open instead. So we set the input after the timestamp to make this behavior possible. --- app/panel/param/param.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/panel/param/param.cpp b/app/panel/param/param.cpp index 1bd3355d7..e6731e9b0 100644 --- a/app/panel/param/param.cpp +++ b/app/panel/param/param.cpp @@ -88,9 +88,9 @@ void ParamPanel::CreateCurvePanel(NodeInput *input) panel = Core::instance()->main_window()->AppendCurvePanel(); - panel->SetInput(input); panel->ConnectViewerNode(view->GetConnectedNode()); panel->SetTimestamp(view->GetTimestamp()); + panel->SetInput(input); connect(view, &NodeParamView::TimeChanged, this, &ParamPanel::ParamViewTimeChanged); connect(panel, &CurvePanel::TimeChanged, this, &ParamPanel::CurvePanelTimeChanged);