diff options
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index b3d3d5e13a..4852f6c4d6 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -4572,9 +4572,9 @@ VSplitContainer *SpatialEditor::get_shader_split() { return shader_split; } -HSplitContainer *SpatialEditor::get_palette_split() { +HBoxContainer *SpatialEditor::get_palette_split() { - return palette_split; + return palette_split_container; } void SpatialEditor::_request_gizmo(Object *p_obj) { @@ -4851,6 +4851,10 @@ SpatialEditor::SpatialEditor(EditorNode *p_editor) { palette_split->set_v_size_flags(SIZE_EXPAND_FILL); vbc->add_child(palette_split); + palette_split_container = memnew(HBoxContainer); + palette_split_container->set_v_size_flags(SIZE_EXPAND_FILL); + palette_split->add_child(palette_split_container); + shader_split = memnew(VSplitContainer); shader_split->set_h_size_flags(SIZE_EXPAND_FILL); palette_split->add_child(shader_split); |