@@ -186,6 +186,7 @@ Ref<PackedScene> ResourceLoaderText::_parse_node_tag(VariantParser::ResourcePars
186186 if (packed_scene.is_null ()) {
187187 packed_scene.instantiate ();
188188 }
189+ packed_scene->_start_load (SNAME (" text" ), format_version);
189190
190191 while (true ) {
191192 if (next_tag.name == " node" ) {
@@ -294,6 +295,7 @@ Ref<PackedScene> ResourceLoaderText::_parse_node_tag(VariantParser::ResourcePars
294295 return Ref<PackedScene>();
295296 } else {
296297 error = OK ;
298+ packed_scene->_finish_load (SNAME (" text" ), format_version);
297299 return packed_scene;
298300 }
299301 }
@@ -385,6 +387,7 @@ Ref<PackedScene> ResourceLoaderText::_parse_node_tag(VariantParser::ResourcePars
385387 return Ref<PackedScene>();
386388 } else {
387389 error = OK ;
390+ packed_scene->_finish_load (" text" , format_version);
388391 return packed_scene;
389392 }
390393 }
@@ -408,6 +411,7 @@ Ref<PackedScene> ResourceLoaderText::_parse_node_tag(VariantParser::ResourcePars
408411 return Ref<PackedScene>();
409412 } else {
410413 error = OK ;
414+ packed_scene->_finish_load (" text" , format_version);
411415 return packed_scene;
412416 }
413417 }
@@ -629,6 +633,7 @@ Error ResourceLoaderText::load() {
629633
630634 int_resources[id] = res; // Always assign int resources.
631635 if (do_assign) {
636+ res->_start_load (SNAME (" text" ), format_version);
632637 if (cache_mode != ResourceFormatLoader::CACHE_MODE_IGNORE ) {
633638 res->set_path (path, cache_mode == ResourceFormatLoader::CACHE_MODE_REPLACE );
634639 } else {
@@ -714,6 +719,10 @@ Error ResourceLoaderText::load() {
714719 if (!missing_resource_properties.is_empty ()) {
715720 res->set_meta (META_MISSING_RESOURCES , missing_resource_properties);
716721 }
722+
723+ if (do_assign) {
724+ res->_finish_load (SNAME (" text" ), format_version);
725+ }
717726 }
718727
719728 while (true ) {
@@ -766,6 +775,8 @@ Error ResourceLoaderText::load() {
766775 }
767776 }
768777
778+ resource->_start_load (SNAME (" text" ), format_version);
779+
769780 Dictionary missing_resource_properties;
770781
771782 while (true ) {
@@ -859,6 +870,7 @@ Error ResourceLoaderText::load() {
859870 if (!missing_resource_properties.is_empty ()) {
860871 resource->set_meta (META_MISSING_RESOURCES , missing_resource_properties);
861872 }
873+ resource->_finish_load (SNAME (" text" ), format_version);
862874
863875 error = OK ;
864876
0 commit comments