diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2015-12-19 10:41:45 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2015-12-19 10:41:45 +0100 |
commit | bf5453e42953afd6f70f1ba34ecb9203c5d53d69 (patch) | |
tree | 719e2b4324b6ef834c92301606360e7902bcfc51 | |
parent | 20efb4810109823bd1fbbbde6400c41b938f957d (diff) |
Remove padding in bottom HBoxContainer of scene tree dock
This way the new "Create new scene from node(s)" button does not make the bar overflow
-rw-r--r-- | tools/editor/scene_tree_dock.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editor/scene_tree_dock.cpp b/tools/editor/scene_tree_dock.cpp index 93203c56f4..ad0b21000c 100644 --- a/tools/editor/scene_tree_dock.cpp +++ b/tools/editor/scene_tree_dock.cpp @@ -1477,9 +1477,10 @@ SceneTreeDock::SceneTreeDock(EditorNode *p_editor,Node *p_scene_root,EditorSelec scene_tree->set_undo_redo(&editor_data->get_undo_redo()); scene_tree->set_editor_selection(editor_selection); + HBoxContainer *hbc_bottom = memnew( HBoxContainer ); vbc->add_child(hbc_bottom); - + hbc_bottom->add_constant_override("separation", 0); tb = memnew( ToolButton ); tb->connect("pressed",this,"_tool_selected",make_binds(TOOL_MOVE_UP, false)); |