Skip to content

Commit 70ea991

Browse files
committed
Allow double-clicking icons of non-editable Tree items
1 parent 7864ac8 commit 70ea991

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

editor/docks/scene_tree_dock.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
12921292
bool editable = EditorNode::get_singleton()->get_edited_scene()->is_editable_instance(node);
12931293

12941294
if (editable) {
1295-
editable_instance_remove_dialog->set_text(TTR("Disabling \"editable_instance\" will cause all properties of the node to be reverted to their default."));
1295+
editable_instance_remove_dialog->set_text(TTR("Disabling \"Editable Children\" will cause all properties of this subscene's descendant nodes to be reverted to their default."));
12961296
editable_instance_remove_dialog->popup_centered();
12971297
break;
12981298
}

scene/gui/tree.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4134,6 +4134,8 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
41344134
if (rtl) {
41354135
pressing_pos.x = get_size().width - pressing_pos.x;
41364136
}
4137+
} else if (mb->is_double_click()) {
4138+
emit_signal(SNAME("item_icon_double_clicked"));
41374139
}
41384140

41394141
if (mb->get_button_index() == MouseButton::RIGHT) {

0 commit comments

Comments
 (0)