Merge pull request #21081 from akien-mga/fix-19289

Fix crash assigning script to a Resource
This commit is contained in:
Rémi Verschelde 2018-08-16 18:27:03 +02:00 committed by GitHub
commit b83f72ce12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2052,7 +2052,7 @@ void EditorPropertyResource::_menu_option(int p_which) {
ERR_BREAK(!resp);
if (get_edited_object() && base_type != String() && base_type == "Script") {
//make visual script the right type
res->call("set_instance_base_type", get_edited_object()->get_class());
resp->call("set_instance_base_type", get_edited_object()->get_class());
}
res = Ref<Resource>(resp);