From 8341038bbe51e7e513dbc1370d5a0f2bd8f48ace Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 29 Jan 2016 08:41:22 -0300 Subject: -Increment resources total in scene format text, fixes #3506 --- scene/resources/scene_format_text.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scene/resources/scene_format_text.cpp') diff --git a/scene/resources/scene_format_text.cpp b/scene/resources/scene_format_text.cpp index f3dcf16e2..d9f6beabc 100644 --- a/scene/resources/scene_format_text.cpp +++ b/scene/resources/scene_format_text.cpp @@ -170,6 +170,7 @@ Error ResourceInteractiveLoaderText::poll() { _printerr(); } + resource_current++; return error; @@ -227,6 +228,8 @@ Error ResourceInteractiveLoaderText::poll() { } + resource_current++; + while(true) { String assign; @@ -291,6 +294,8 @@ Error ResourceInteractiveLoaderText::poll() { resource=Ref(r); + resource_current++; + while(true) { String assign; @@ -745,6 +750,8 @@ void ResourceInteractiveLoaderText::open(FileAccess *p_f,bool p_skip_first_tag) stream.f=f; is_scene=false; + resource_current=0; + VariantParser::Tag tag; Error err = VariantParser::parse_tag(&stream,lines,error_text,tag); -- cgit v1.2.3-70-g09d2