From 629c3e2a0a36d9b83e38761c61b7e06fb4c71f80 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 (cherry picked from commit e168baf433fee964d103693e227cce7f27b8905e) --- 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 a42f0b4d721..8f075683ead 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2623,7 +2623,7 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) { } } - if (add_separator) { + if (add_separator && profile_allow_editing) { menu->add_separator(); } }