mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-04 07:05:54 +01:00
Removed extra separator in absence of ChangeType and Rename
(cherry picked from commit 46ca4737f19f3701ec352f2e898514109c096587)
This commit is contained in:
parent
a834816352
commit
b6273a70ce
@ -2821,7 +2821,10 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (profile_allow_editing) {
|
if (profile_allow_editing) {
|
||||||
|
bool add_separator = false;
|
||||||
|
|
||||||
if (full_selection.size() == 1) {
|
if (full_selection.size() == 1) {
|
||||||
|
add_separator = true;
|
||||||
menu->add_icon_shortcut(get_icon("Rename", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/rename"), TOOL_RENAME);
|
menu->add_icon_shortcut(get_icon("Rename", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/rename"), TOOL_RENAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2834,11 +2837,14 @@ void SceneTreeDock::_tree_rmb(const Vector2 &p_menu_pos) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (can_replace) {
|
if (can_replace) {
|
||||||
|
add_separator = true;
|
||||||
menu->add_icon_shortcut(get_icon("Reload", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/change_node_type"), TOOL_REPLACE);
|
menu->add_icon_shortcut(get_icon("Reload", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/change_node_type"), TOOL_REPLACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scene_tree->get_selected() != edited_scene) {
|
if (scene_tree->get_selected() != edited_scene) {
|
||||||
|
if (add_separator) {
|
||||||
menu->add_separator();
|
menu->add_separator();
|
||||||
|
}
|
||||||
menu->add_icon_shortcut(get_icon("MoveUp", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/move_up"), TOOL_MOVE_UP);
|
menu->add_icon_shortcut(get_icon("MoveUp", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/move_up"), TOOL_MOVE_UP);
|
||||||
menu->add_icon_shortcut(get_icon("MoveDown", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/move_down"), TOOL_MOVE_DOWN);
|
menu->add_icon_shortcut(get_icon("MoveDown", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/move_down"), TOOL_MOVE_DOWN);
|
||||||
menu->add_icon_shortcut(get_icon("Duplicate", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/duplicate"), TOOL_DUPLICATE);
|
menu->add_icon_shortcut(get_icon("Duplicate", "EditorIcons"), ED_GET_SHORTCUT("scene_tree/duplicate"), TOOL_DUPLICATE);
|
||||||
|
Loading…
Reference in New Issue
Block a user