summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-11-09 11:45:21 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-11-09 11:45:21 +0100
commit432c75d6af8be64174969f593ddb96c37d25bdf2 (patch)
treebd38272e2cac1ef5732a00eeb6bf20bd2c48e8e3
parente5bacbc4716ce5b54bc2ab8b3053cd5e22ffe446 (diff)
parent203f3e700bfd290b2c7c7156e8a66fb51633cba1 (diff)
downloadredot-engine-432c75d6af8be64174969f593ddb96c37d25bdf2.tar.gz
Merge pull request #83081 from Rindbee/fix-wrong-split
Fix `EditorFileSystemDirectory::get_file_deps()` may return wrong result
-rw-r--r--editor/editor_file_system.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index b1d591d0f3..b6d1b92f9f 100644
--- a/editor/editor_file_system.cpp
+++ b/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;