Browse Source

Merge pull request #83081 from Rindbee/fix-wrong-split

Fix `EditorFileSystemDirectory::get_file_deps()` may return wrong result
Rémi Verschelde 1 year ago
parent
commit
432c75d6af
1 changed files with 2 additions and 1 deletions
  1. 2 1
      editor/editor_file_system.cpp

+ 2 - 1
editor/editor_file_system.cpp

@@ -261,7 +261,8 @@ void EditorFileSystem::_scan_filesystem() {
 					cpath = name;
 
 				} else {
-					Vector<String> split = l.split("::");
+					// The last section (deps) may contain the same splitter, so limit the maxsplit to 8 to get the complete deps.
+					Vector<String> split = l.split("::", true, 8);
 					ERR_CONTINUE(split.size() < 9);
 					String name = split[0];
 					String file;