You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Merge pull request #83081 from Rindbee/fix-wrong-split
Fix `EditorFileSystemDirectory::get_file_deps()` may return wrong result
This commit is contained in:
@@ -261,7 +261,8 @@ void EditorFileSystem::_scan_filesystem() {
|
|||||||
cpath = name;
|
cpath = name;
|
||||||
|
|
||||||
} else {
|
} 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);
|
ERR_CONTINUE(split.size() < 9);
|
||||||
String name = split[0];
|
String name = split[0];
|
||||||
String file;
|
String file;
|
||||||
|
|||||||
Reference in New Issue
Block a user