Properly remember EOF when interactive loader is done, fixes #14936

This commit is contained in:
Juan Linietsky 2018-11-12 08:23:21 -03:00
parent 85f0ce40e1
commit 4a0f783732
1 changed files with 2 additions and 2 deletions

View File

@ -626,14 +626,14 @@ Error ResourceInteractiveLoaderText::poll() {
if (!packed_scene.is_valid())
return error;
error = OK;
error = ERR_FILE_EOF;
//get it here
resource = packed_scene;
if (!ResourceCache::has(res_path)) {
packed_scene->set_path(res_path);
}
return ERR_FILE_EOF;
return error;
} else {
error_text += "Unknown tag in file: " + next_tag.name;