diff options
| author | Juan Linietsky | 2016-07-22 09:42:12 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-07-22 09:42:12 -0300 |
| commit | 12472534ec644fbffa0d15b0ab199f41abefc324 (patch) | |
| tree | e8f70bbb9761a438654f57ea2c4e279191aec23d /tools/editor/animation_editor.h | |
| parent | f51a8162532e135584f82ecb3ef48414fd8188cf (diff) | |
| download | godot-12472534ec644fbffa0d15b0ab199f41abefc324.tar.gz godot-12472534ec644fbffa0d15b0ab199f41abefc324.tar.zst godot-12472534ec644fbffa0d15b0ab199f41abefc324.zip | |
Show a warning that an animation must be selected in order to edit it. Avoid copying/pasting if no anim selected. Closes #5799
Diffstat (limited to 'tools/editor/animation_editor.h')
| -rw-r--r-- | tools/editor/animation_editor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/animation_editor.h b/tools/editor/animation_editor.h index 131100a20..3078b3288 100644 --- a/tools/editor/animation_editor.h +++ b/tools/editor/animation_editor.h @@ -268,6 +268,7 @@ class AnimationKeyEditor : public VBoxContainer { EditorSelection *editor_selection; + Label *select_anim_warning; float _get_zoom_scale() const; @@ -343,6 +344,7 @@ public: void insert_value_key(const String& p_property, const Variant& p_value, bool p_advance); void insert_transform_key(Spatial *p_node,const String& p_sub,const Transform& p_xform); + void show_select_node_warning(bool p_show) { select_anim_warning->set_hidden(!p_show); } AnimationKeyEditor(); ~AnimationKeyEditor(); }; |
