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.
This commit is contained in:
itsmattkc
2020-06-24 01:36:04 +10:00
parent d31c373bd0
commit b0a5d4f4c3
+1 -1
View File
@@ -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);