Add support for FPS snap in Animation Editor.
(cherry picked from commit 4203266923)
This commit is contained in:
committed by
Hein-Pieter van Braam-Stewart
parent
0064d26517
commit
6fac922bff
@ -76,6 +76,7 @@ class AnimationTimelineEdit : public Range {
|
||||
Rect2 hsize_rect;
|
||||
|
||||
bool editing;
|
||||
bool use_fps;
|
||||
|
||||
bool panning_timeline;
|
||||
float panning_timeline_from;
|
||||
@ -110,6 +111,9 @@ public:
|
||||
|
||||
void update_values();
|
||||
|
||||
void set_use_fps(bool p_use_fps);
|
||||
bool is_using_fps() const;
|
||||
|
||||
void set_hscroll(HScrollBar *p_hscroll);
|
||||
|
||||
AnimationTimelineEdit();
|
||||
@ -303,7 +307,9 @@ class AnimationTrackEditor : public VBoxContainer {
|
||||
EditorSpinSlider *step;
|
||||
TextureRect *zoom_icon;
|
||||
ToolButton *snap;
|
||||
OptionButton *snap_mode;
|
||||
|
||||
void _snap_mode_changed(int p_mode);
|
||||
Vector<AnimationTrackEdit *> track_edits;
|
||||
Vector<AnimationTrackEditGroup *> groups;
|
||||
|
||||
@ -328,6 +334,8 @@ class AnimationTrackEditor : public VBoxContainer {
|
||||
void _new_track_node_selected(NodePath p_path);
|
||||
void _new_track_property_selected(String p_name);
|
||||
|
||||
void _update_step_spinbox();
|
||||
|
||||
PropertySelector *prop_selector;
|
||||
PropertySelector *method_selector;
|
||||
SceneTreeDialog *pick_track;
|
||||
@ -484,6 +492,9 @@ public:
|
||||
void update_keying();
|
||||
bool has_keying() const;
|
||||
|
||||
Dictionary get_state() const;
|
||||
void set_state(const Dictionary &p_state);
|
||||
|
||||
void cleanup();
|
||||
|
||||
void set_anim_pos(float p_pos);
|
||||
|
||||
Reference in New Issue
Block a user