diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-18 09:05:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 09:05:34 +0100 |
commit | 8af4ce983266d2bcdfce83a6f2888b7c49ba443f (patch) | |
tree | 2760b68184766628a67e521567f078ca0c1dccdf /editor/plugins | |
parent | a195b2f1a3514e721911c8911a55d316f83588c1 (diff) | |
parent | 3c9ce2406b421d3bb7ae76758414e71cfe333387 (diff) |
Merge pull request #24436 from YeldhamDev/animationtree_editor_better_path
Make the AnimationTree editor's path section more obvious
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/animation_tree_editor_plugin.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index 24787a78e9..2f3eb2f552 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -90,8 +90,8 @@ void AnimationTreeEditor::_path_button_pressed(int p_path) { } void AnimationTreeEditor::_update_path() { - while (path_hb->get_child_count()) { - memdelete(path_hb->get_child(0)); + while (path_hb->get_child_count() > 1) { + memdelete(path_hb->get_child(1)); } Ref<ButtonGroup> group; @@ -251,6 +251,9 @@ AnimationTreeEditor::AnimationTreeEditor() { path_edit->set_enable_v_scroll(false); path_hb = memnew(HBoxContainer); path_edit->add_child(path_hb); + path_hb->add_child(memnew(Label(TTR("Path:")))); + + add_child(memnew(HSeparator)); current_root = 0; singleton = this; |