From 9901e7715b84f0b9dbc76f4527043aa4b7212f29 Mon Sep 17 00:00:00 2001 From: jrb0001 Date: Tue, 31 Dec 2024 16:34:15 +0100 Subject: [PATCH] Ignore directories ignored by godot (.gdignore file) --- addons/dialogic/Core/DialogicResourceUtil.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/dialogic/Core/DialogicResourceUtil.gd b/addons/dialogic/Core/DialogicResourceUtil.gd index f20a8d18b..5c4809ced 100644 --- a/addons/dialogic/Core/DialogicResourceUtil.gd +++ b/addons/dialogic/Core/DialogicResourceUtil.gd @@ -275,7 +275,7 @@ static func list_resources_of_type(extension:String) -> Array: static func scan_folder(path:String, extension:String) -> Array: var list: Array = [] - if DirAccess.dir_exists_absolute(path): + if DirAccess.dir_exists_absolute(path) and not FileAccess.file_exists(path + "/" + ".gdignore"): var dir := DirAccess.open(path) dir.list_dir_begin() var file_name := dir.get_next()