diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-04 13:12:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 13:12:17 +0200 |
commit | 4e7ca279fca892c1ceef875ef728be748ab1179b (patch) | |
tree | 61e833c205c18714d9ed0873f8dc8ca86e0d8680 /editor/plugins | |
parent | 56316b27ab97acb3ce1a318ba3466c31489a1322 (diff) | |
parent | 0de9a7d8030a35415e918e9580f5926db4856ea2 (diff) |
Merge pull request #47855 from aaronfranke/doubleclick
Rename `doubleclick` to `double_click`
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 6ac47595dc..261621e10a 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1654,7 +1654,7 @@ bool CanvasItemEditor::_gui_input_open_scene_on_double_click(const Ref<InputEven Ref<InputEventMouseButton> b = p_event; // Open a sub-scene on double-click - if (b.is_valid() && b->get_button_index() == MOUSE_BUTTON_LEFT && b->is_pressed() && b->is_doubleclick() && tool == TOOL_SELECT) { + if (b.is_valid() && b->get_button_index() == MOUSE_BUTTON_LEFT && b->is_pressed() && b->is_double_click() && tool == TOOL_SELECT) { List<CanvasItem *> selection = _get_edited_canvas_items(); if (selection.size() == 1) { CanvasItem *canvas_item = selection[0]; |