Merge pull request #108555 from beicause/fix-crash-editing-resource-and-reloading-scene
Fix crash when editing some resources and reloading scene
This commit is contained in:
@@ -3330,8 +3330,7 @@ void EditorPropertyResource::_sub_inspector_object_id_selected(int p_id) {
|
||||
void EditorPropertyResource::_open_editor_pressed() {
|
||||
Ref<Resource> 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user