Skip to content

Commit 6ba1a1e

Browse files
committed
Fix crash when editing some resources and reloading scene
1 parent 4d1f26e commit 6ba1a1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

editor/inspector/editor_properties.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3330,8 +3330,7 @@ void EditorPropertyResource::_sub_inspector_object_id_selected(int p_id) {
33303330
void EditorPropertyResource::_open_editor_pressed() {
33313331
Ref<Resource> res = get_edited_property_value();
33323332
if (res.is_valid()) {
3333-
// May clear the editor so do it deferred.
3334-
callable_mp(EditorNode::get_singleton(), &EditorNode::edit_item).call_deferred(res.ptr(), this);
3333+
EditorNode::get_singleton()->edit_item(res.ptr(), this);
33353334
}
33363335
}
33373336

0 commit comments

Comments
 (0)