Merge pull request #88572 from ajreckof/fix-crash-on-dictionarry-new-key/value-change-type-when-inspector-opened

Fix crash on changing resource type of dictionary new key/value while editing the resource.
This commit is contained in:
Rémi Verschelde 2024-02-28 09:34:27 +01:00
commit 0ac99b94d3
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -467,6 +467,8 @@ void EditorResourcePicker::_edit_menu_cbk(int p_which) {
EditorNode::get_editor_data().instantiate_object_properties(obj);
// Prevent freeing of the object until the end of the update of the resource (GH-88286).
Ref<Resource> old_edited_resource = edited_resource;
edited_resource = Ref<Resource>(resp);
emit_signal(SNAME("resource_changed"), edited_resource);
_update_resource();