From 4a27fb7e83b80a59d2dcd36c39f55920eaa05526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anni=20Ryyn=C3=A4nen?= Date: Wed, 10 Jul 2024 11:07:51 +0300 Subject: [PATCH] Fix edited node being removed before editor plugin handles focus loss `CanvasItemEditor::_select_click_on_item` was causing `EditorNode::_plugin_over_edit` to be called before focus exit had time to propagate to `SpriteFramesEditor::_animation_speed_changed`. --- editor/plugins/canvas_item_editor_plugin.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 294df958740..f9be1b08d9d 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -772,7 +772,6 @@ bool CanvasItemEditor::_select_click_on_item(CanvasItem *item, Point2 p_click_po // Reselect if (Engine::get_singleton()->is_editor_hint()) { selected_from_canvas = true; - EditorNode::get_singleton()->edit_node(item); } } }