瀏覽代碼

Remove oversized margins in the AnimationTree editor

Michael Alexsander 5 年之前
父節點
當前提交
4f00ac7003
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      editor/plugins/animation_tree_editor_plugin.cpp
  2. 1 1
      editor/plugins/animation_tree_editor_plugin.h

+ 1 - 1
editor/plugins/animation_tree_editor_plugin.cpp

@@ -238,7 +238,7 @@ AnimationTreeEditor::AnimationTreeEditor() {
 	add_child(memnew(HSeparator));
 
 	singleton = this;
-	editor_base = memnew(PanelContainer);
+	editor_base = memnew(MarginContainer);
 	editor_base->set_v_size_flags(SIZE_EXPAND_FILL);
 	add_child(editor_base);
 

+ 1 - 1
editor/plugins/animation_tree_editor_plugin.h

@@ -55,7 +55,7 @@ class AnimationTreeEditor : public VBoxContainer {
 	HBoxContainer *path_hb;
 
 	AnimationTree *tree;
-	PanelContainer *editor_base;
+	MarginContainer *editor_base;
 
 	Vector<String> button_path;
 	Vector<String> edited_path;