Skip to content

Commit 77cfbe9

Browse files
committed
Merge pull request godotengine#111780 from aaronfranke/tree-double-click-not-editable
Allow double-clicking icons of non-editable Tree items
2 parents 2d86b69 + 70ea991 commit 77cfbe9

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
@@ -4160,6 +4160,8 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
41604160
if (rtl) {
41614161
pressing_pos.x = get_size().width - pressing_pos.x;
41624162
}
4163+
} else if (mb->is_double_click()) {
4164+
emit_signal(SNAME("item_icon_double_clicked"));
41634165
}
41644166

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

0 commit comments

Comments
 (0)