Also fixed that widget time slider frames per second was not updated when changing the render description.
It produced bad time cursor position when dragging the time cursor and the document fps is not 24 fps (the default one for widget time slider)
Now when the render description is modified, the sock time track widget time slider fps is updated.
canvas_view->time_adjustment().signal_changed().connect(sigc::mem_fun(*tree_view,&Gtk::TreeView::queue_draw));
canvas_view->set_ext_widget(get_name(),tree_view);
+ canvas_view->canvas_interface()->signal_rend_desc_changed().connect(sigc::mem_fun(*this,&studio::Dock_Timetrack::refresh_rend_desc));
}
void
}
void
+Dock_Timetrack::refresh_rend_desc()
+{
+ if(App::get_selected_canvas_view())
+ {
+ widget_timeslider_->set_global_fps(App::get_selected_canvas_view()->get_canvas()->rend_desc().get_frame_rate());
+ }
+}
+
+void
Dock_Timetrack::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
if(table_)
virtual void changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view);
void refresh_selected_param();
+ void refresh_rend_desc();
public:
{
if(update_lock)return;
UpdateLock lock(update_lock);
- rend_desc_.set_frame_rate((int)(adjustment_fps.get_value()+0.5));
+ rend_desc_.set_frame_rate(adjustment_fps.get_value());
refresh();
signal_changed()();
}