summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-11-12 08:23:21 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-11-12 08:24:05 -0300
commit4a0f7837324801f405e5c87619219b8cd03c86c2 (patch)
tree00ddbace7e46cc813461c215f99e2ea29cf3c538
parent85f0ce40e103c2c6b0a495f25d8f2e8e177c2091 (diff)
Properly remember EOF when interactive loader is done, fixes #14936
-rw-r--r--scene/resources/scene_format_text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp
index f287b43fbe..5ae843f2bd 100644
--- a/scene/resources/scene_format_text.cpp
+++ b/scene/resources/scene_format_text.cpp
@@ -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;