summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorAnni Ryynänen <anni@anniryynanen.com>2024-07-10 11:07:51 +0300
committerAnni Ryynänen <anni@anniryynanen.com>2024-07-10 16:32:56 +0300
commit4a27fb7e83b80a59d2dcd36c39f55920eaa05526 (patch)
treeeabb36e0c11e7697cb6638945a21c6e868acf6ec /editor
parent26d1577f3985363faab48a65e9a0d9eed0e26d86 (diff)
downloadredot-engine-4a27fb7e83b80a59d2dcd36c39f55920eaa05526.tar.gz
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`.
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index 294df95874..f9be1b08d9 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);
}
}
}