Allow double-clicking icons of non-editable Tree items
This commit is contained in:
parent
7864ac8019
commit
70ea991c69
2 changed files with 3 additions and 1 deletions
|
|
@ -1292,7 +1292,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
|||
bool editable = EditorNode::get_singleton()->get_edited_scene()->is_editable_instance(node);
|
||||
|
||||
if (editable) {
|
||||
editable_instance_remove_dialog->set_text(TTR("Disabling \"editable_instance\" will cause all properties of the node to be reverted to their default."));
|
||||
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."));
|
||||
editable_instance_remove_dialog->popup_centered();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4134,6 +4134,8 @@ void Tree::gui_input(const Ref<InputEvent> &p_event) {
|
|||
if (rtl) {
|
||||
pressing_pos.x = get_size().width - pressing_pos.x;
|
||||
}
|
||||
} else if (mb->is_double_click()) {
|
||||
emit_signal(SNAME("item_icon_double_clicked"));
|
||||
}
|
||||
|
||||
if (mb->get_button_index() == MouseButton::RIGHT) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue