瀏覽代碼

Fix external resource cache regression

PouleyKetchoupp 4 年之前
父節點
當前提交
c957035320
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      scene/resources/resource_format_text.cpp
  2. 1 0
      scene/resources/resource_format_text.h

+ 1 - 0
scene/resources/resource_format_text.cpp

@@ -422,6 +422,7 @@ Error ResourceInteractiveLoaderText::poll() {
 		}
 		}
 
 
 		ExtResource er;
 		ExtResource er;
+		er.cache = res;
 		er.path = path;
 		er.path = path;
 		er.type = type;
 		er.type = type;
 		ext_resources[index] = er;
 		ext_resources[index] = er;

+ 1 - 0
scene/resources/resource_format_text.h

@@ -48,6 +48,7 @@ class ResourceInteractiveLoaderText : public ResourceInteractiveLoader {
 	VariantParser::StreamFile stream;
 	VariantParser::StreamFile stream;
 
 
 	struct ExtResource {
 	struct ExtResource {
+		RES cache;
 		String path;
 		String path;
 		String type;
 		String type;
 	};
 	};