Skip to content

Commit

Permalink
Merge pull request #83081 from Rindbee/fix-wrong-split
Browse files Browse the repository at this point in the history
Fix `EditorFileSystemDirectory::get_file_deps()` may return wrong result
  • Loading branch information
akien-mga committed Nov 9, 2023
2 parents e5bacbc + 203f3e7 commit 432c75d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/editor_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 432c75d

Please sign in to comment.