diff options
Diffstat (limited to 'scene/resources/resource_format_text.cpp')
-rw-r--r-- | scene/resources/resource_format_text.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/resources/resource_format_text.cpp b/scene/resources/resource_format_text.cpp index a97ff5054d..d08919a8c6 100644 --- a/scene/resources/resource_format_text.cpp +++ b/scene/resources/resource_format_text.cpp @@ -176,6 +176,13 @@ Error ResourceLoaderText::_parse_ext_resource(VariantParser::Stream *p_stream, R } else { r_res = Ref<Resource>(); } +#ifdef TOOLS_ENABLED + if (r_res.is_null()) { + // Hack to allow checking original path. + r_res.instantiate(); + r_res->set_meta("__load_path__", ext_resources[id].path); + } +#endif } VariantParser::get_token(p_stream, token, line, r_err_str); |