diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2019-10-22 02:46:50 +0200 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2019-10-22 02:46:50 +0200 |
commit | 4b9860ea942e0fd58df8a2a73820e26c4a964be6 (patch) | |
tree | fafcecb924bc5334993a0b37bc5652dc4028393a /editor/animation_track_editor_plugins.h | |
parent | 3564547208030264a28cc55232992aab3cbdad94 (diff) | |
download | redot-engine-4b9860ea942e0fd58df8a2a73820e26c4a964be6.tar.gz |
Show preview of frame_coords in AnimationPlayer
Diffstat (limited to 'editor/animation_track_editor_plugins.h')
-rw-r--r-- | editor/animation_track_editor_plugins.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/animation_track_editor_plugins.h b/editor/animation_track_editor_plugins.h index 5f0ea6196c..1013cccf72 100644 --- a/editor/animation_track_editor_plugins.h +++ b/editor/animation_track_editor_plugins.h @@ -81,6 +81,7 @@ class AnimationTrackEditSpriteFrame : public AnimationTrackEdit { GDCLASS(AnimationTrackEditSpriteFrame, AnimationTrackEdit); ObjectID id; + bool is_coords; public: virtual int get_key_height() const; @@ -89,6 +90,9 @@ public: virtual void draw_key(int p_index, float p_pixels_sec, int p_x, bool p_selected, int p_clip_left, int p_clip_right); void set_node(Object *p_object); + void set_as_coords(); + + AnimationTrackEditSpriteFrame() { is_coords = false; } }; class AnimationTrackEditSubAnim : public AnimationTrackEdit { |