From a9ef40b388be26c471d0b955304cf29c669cfe24 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Thu, 2 Jul 2020 02:53:42 -0300 Subject: [PATCH] Remove oversized margins in the AnimationTree editor (cherry picked from commit 4f00ac7003c8818269b26b1acd1ce8ef308a8c08) --- editor/plugins/animation_tree_editor_plugin.cpp | 2 +- editor/plugins/animation_tree_editor_plugin.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/animation_tree_editor_plugin.cpp b/editor/plugins/animation_tree_editor_plugin.cpp index 8dc7e4638db..edada73d911 100644 --- a/editor/plugins/animation_tree_editor_plugin.cpp +++ b/editor/plugins/animation_tree_editor_plugin.cpp @@ -244,7 +244,7 @@ AnimationTreeEditor::AnimationTreeEditor() { current_root = 0; singleton = this; - editor_base = memnew(PanelContainer); + editor_base = memnew(MarginContainer); editor_base->set_v_size_flags(SIZE_EXPAND_FILL); add_child(editor_base); diff --git a/editor/plugins/animation_tree_editor_plugin.h b/editor/plugins/animation_tree_editor_plugin.h index 0b93b0fd8e1..2146dfee455 100644 --- a/editor/plugins/animation_tree_editor_plugin.h +++ b/editor/plugins/animation_tree_editor_plugin.h @@ -56,7 +56,7 @@ class AnimationTreeEditor : public VBoxContainer { HBoxContainer *path_hb; AnimationTree *tree; - PanelContainer *editor_base; + MarginContainer *editor_base; Vector button_path; Vector edited_path;