mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 20:36:53 +01:00
Don't try to import unknown dependency from scan
Only import dependency we know how to import, since custom resource may have .gd in dependency list which doesn't have an importer (cherry picked from commit 0463a445c4470509d581747bd272b0a76227c723)
This commit is contained in:
parent
6656d1a33d
commit
159649099d
@ -563,7 +563,12 @@ bool EditorFileSystem::_update_scan_actions() {
|
|||||||
if (_test_for_reimport(full_path, false)) {
|
if (_test_for_reimport(full_path, false)) {
|
||||||
//must reimport
|
//must reimport
|
||||||
reimports.push_back(full_path);
|
reimports.push_back(full_path);
|
||||||
reimports.append_array(_get_dependencies(full_path));
|
Vector<String> dependencies = _get_dependencies(full_path);
|
||||||
|
for (int i = 0; i < dependencies.size(); i++) {
|
||||||
|
if (import_extensions.has(dependencies[i].get_extension())) {
|
||||||
|
reimports.push_back(dependencies[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//must not reimport, all was good
|
//must not reimport, all was good
|
||||||
//update modified times, to avoid reimport
|
//update modified times, to avoid reimport
|
||||||
|
Loading…
Reference in New Issue
Block a user