diff --git a/scene/resources/resource_format_text.cpp b/scene/resources/resource_format_text.cpp index 2c9842dc648..fc5938f21c6 100644 --- a/scene/resources/resource_format_text.cpp +++ b/scene/resources/resource_format_text.cpp @@ -422,6 +422,7 @@ Error ResourceInteractiveLoaderText::poll() { } ExtResource er; + er.cache = res; er.path = path; er.type = type; ext_resources[index] = er; diff --git a/scene/resources/resource_format_text.h b/scene/resources/resource_format_text.h index 7ab7d5f992b..770f330c95d 100644 --- a/scene/resources/resource_format_text.h +++ b/scene/resources/resource_format_text.h @@ -48,6 +48,7 @@ class ResourceInteractiveLoaderText : public ResourceInteractiveLoader { VariantParser::StreamFile stream; struct ExtResource { + RES cache; String path; String type; };