Browse Source

Merge pull request #77749 from RandomShaper/fix_ext_res_id

Fix external resource ids lost
Rémi Verschelde 2 years ago
parent
commit
621d68e412
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/resources/resource_format_text.cpp

+ 1 - 1
scene/resources/resource_format_text.cpp

@@ -168,7 +168,7 @@ Error ResourceLoaderText::_parse_ext_resource(VariantParser::Stream *p_stream, R
 			} else {
 #ifdef TOOLS_ENABLED
 				//remember ID for saving
-				res->set_id_for_path(path, id);
+				res->set_id_for_path(local_path, id);
 #endif
 				r_res = res;
 			}