From e168baf433fee964d103693e227cce7f27b8905e Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 6 May 2021 17:37:12 -0400 Subject: [PATCH] Remove extra separator Removes an extra separator when Scene Tree Editing is disabled. Discussed in #48518 --- editor/scene_tree_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 2a2960ed6f6..d74054e7d97 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2624,7 +2624,7 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) { } } - if (add_separator) { + if (add_separator && profile_allow_editing) { menu->add_separator(); } }