From c957035320d6ca0da33bcde7cfa054058617ed9f Mon Sep 17 00:00:00 2001 From: PouleyKetchoupp Date: Wed, 16 Jun 2021 16:07:04 -0700 Subject: [PATCH] Fix external resource cache regression --- scene/resources/resource_format_text.cpp | 1 + scene/resources/resource_format_text.h | 1 + 2 files changed, 2 insertions(+) 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; };