Merge pull request #91970 from jsjtxietian/add-canvasitem
Rename `"Add Node Here` to `Add 2D Node Here` to avoid confusion when right click on 2d scene to add nodes
This commit is contained in:
commit
9426643d5f
1 changed files with 1 additions and 1 deletions
|
|
@ -2471,7 +2471,7 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) {
|
|||
|
||||
if (b.is_valid() && b->is_pressed() && b->get_button_index() == MouseButton::RIGHT && tool != TOOL_SCENE_PAINT) {
|
||||
add_node_menu->clear();
|
||||
add_node_menu->add_icon_item(get_editor_theme_icon(SNAME("Add")), TTRC("Add Node Here..."), ADD_NODE);
|
||||
add_node_menu->add_icon_item(get_editor_theme_icon(SNAME("Add")), TTRC("Add 2D Node Here..."), ADD_NODE);
|
||||
add_node_menu->add_icon_item(get_editor_theme_icon(SNAME("Instance")), TTRC("Instantiate Scene Here..."), ADD_INSTANCE);
|
||||
for (Node *node : SceneTreeDock::get_singleton()->get_node_clipboard()) {
|
||||
if (Object::cast_to<CanvasItem>(node)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue