aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/animation_editor.h
diff options
context:
space:
mode:
authorJuan Linietsky2016-07-22 09:42:12 -0300
committerJuan Linietsky2016-07-22 09:42:12 -0300
commit12472534ec644fbffa0d15b0ab199f41abefc324 (patch)
treee8f70bbb9761a438654f57ea2c4e279191aec23d /tools/editor/animation_editor.h
parentf51a8162532e135584f82ecb3ef48414fd8188cf (diff)
downloadgodot-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.h2
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();
};