Merge pull request #27388 from KidRigger/master

Prevents crash on loading unrecognized resources.
This commit is contained in:
Rémi Verschelde 2019-03-27 17:22:27 +01:00 committed by GitHub
commit 167d02ef61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1982,6 +1982,8 @@ void EditorPropertyResource::_file_selected(const String &p_path) {
RES res = ResourceLoader::load(p_path); RES res = ResourceLoader::load(p_path);
ERR_FAIL_COND(res.is_null());
List<PropertyInfo> prop_list; List<PropertyInfo> prop_list;
get_edited_object()->get_property_list(&prop_list); get_edited_object()->get_property_list(&prop_list);
String property_types; String property_types;