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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user