From 6ba1a1e758d56954cc20a14c41a1c3ec39746651 Mon Sep 17 00:00:00 2001 From: LuoZhihao Date: Sun, 13 Jul 2025 01:16:20 +0800 Subject: [PATCH] Fix crash when editing some resources and reloading scene --- editor/inspector/editor_properties.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/inspector/editor_properties.cpp b/editor/inspector/editor_properties.cpp index 1b29c3631c..f532175a7f 100644 --- a/editor/inspector/editor_properties.cpp +++ b/editor/inspector/editor_properties.cpp @@ -3330,8 +3330,7 @@ void EditorPropertyResource::_sub_inspector_object_id_selected(int p_id) { void EditorPropertyResource::_open_editor_pressed() { Ref res = get_edited_property_value(); if (res.is_valid()) { - // May clear the editor so do it deferred. - callable_mp(EditorNode::get_singleton(), &EditorNode::edit_item).call_deferred(res.ptr(), this); + EditorNode::get_singleton()->edit_item(res.ptr(), this); } }