summaryrefslogtreecommitdiffstats
path: root/editor/scene_tree_dock.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2022-08-01 12:28:16 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2022-08-18 22:25:44 +0300
commit8c56a7416b423e4fa3bf0a3a143fe4afbb8e7ba2 (patch)
tree434138e74dd299292e8997a8000d135bc6198812 /editor/scene_tree_dock.cpp
parent9bb6cc591c598f41ad718760e17f6c8847797ed0 (diff)
downloadredot-engine-8c56a7416b423e4fa3bf0a3a143fe4afbb8e7ba2.tar.gz
Implement `MenuBar` control to wrap `PopupMenu`s or native menu, use native menu for editor.
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r--editor/scene_tree_dock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index d19a40599f..0f4f3dcfcf 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -2678,7 +2678,7 @@ void SceneTreeDock::_add_children_to_popup(Object *p_obj, int p_depth) {
}
int index = menu_subresources->get_item_count();
menu_subresources->add_icon_item(icon, E.name.capitalize(), EDIT_SUBRESOURCE_BASE + subresources.size());
- menu_subresources->set_item_horizontal_offset(index, p_depth * 10 * EDSCALE);
+ menu_subresources->set_item_indent(index, p_depth);
subresources.push_back(obj->get_instance_id());
_add_children_to_popup(obj, p_depth + 1);