Remove extra separator

Removes an extra separator when Scene Tree Editing is disabled. Discussed in #48518

(cherry picked from commit e168baf433)
This commit is contained in:
Kyle 2021-05-06 17:37:12 -04:00 committed by Rémi Verschelde
parent f711464030
commit 629c3e2a0a
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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();
}
}