diff options
| author | Juan Linietsky | 2015-12-05 14:18:22 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-12-05 14:18:22 -0300 |
| commit | 200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f (patch) | |
| tree | d9dc837018c4c2c7680491889316eedb9fe6b36c /tools/editor/plugins | |
| parent | 35fa048af555e1f8411a2034706e9e452ce2f399 (diff) | |
| download | godot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.tar.gz godot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.tar.zst godot-200b7bb87c3d8d8b2011b08ed4bd7b034ceb452f.zip | |
-Display on animation editor which keys are invalid and which tracks are unresolved
-Added a tool to clean up unresolved tracks and unused keys
Diffstat (limited to 'tools/editor/plugins')
| -rw-r--r-- | tools/editor/plugins/animation_player_editor_plugin.cpp | 7 | ||||
| -rw-r--r-- | tools/editor/plugins/animation_player_editor_plugin.h | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tools/editor/plugins/animation_player_editor_plugin.cpp b/tools/editor/plugins/animation_player_editor_plugin.cpp index 6542fc8b4..dc2c241d2 100644 --- a/tools/editor/plugins/animation_player_editor_plugin.cpp +++ b/tools/editor/plugins/animation_player_editor_plugin.cpp @@ -1250,8 +1250,15 @@ void AnimationPlayerEditor::_bind_methods() { } +AnimationPlayerEditor *AnimationPlayerEditor::singleton=NULL; + +AnimationPlayer *AnimationPlayerEditor::get_player() const { + + return player; +} AnimationPlayerEditor::AnimationPlayerEditor(EditorNode *p_editor) { editor=p_editor; + singleton=this; updating=false; diff --git a/tools/editor/plugins/animation_player_editor_plugin.h b/tools/editor/plugins/animation_player_editor_plugin.h index ac4d1ab6b..839df3ddc 100644 --- a/tools/editor/plugins/animation_player_editor_plugin.h +++ b/tools/editor/plugins/animation_player_editor_plugin.h @@ -162,6 +162,7 @@ class AnimationPlayerEditor : public VBoxContainer { void _animation_tool_menu(int p_option); void _animation_save_menu(int p_option); + AnimationPlayerEditor(); protected: @@ -171,6 +172,9 @@ protected: static void _bind_methods(); public: + AnimationPlayer *get_player() const; + static AnimationPlayerEditor *singleton; + Dictionary get_state() const; void set_state(const Dictionary& p_state); |
