From 35a92729a3a92fe567cfe86540ffe3cf6053efde Mon Sep 17 00:00:00 2001 From: Hyper Sonic Date: Wed, 22 Apr 2020 02:41:24 +0100 Subject: [PATCH] Fix "No loader found for resource ... .svg.import" Only load actual .svg, not their .import files --- Outliner.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outliner.gd b/Outliner.gd index 1e0622b..f79abd7 100644 --- a/Outliner.gd +++ b/Outliner.gd @@ -28,7 +28,7 @@ func load_textures(var dir_path): var file_name = dir.get_next() while file_name != "": - if !dir.current_is_dir(): + if !dir.current_is_dir() and file_name.ends_with(".svg"): icon_dictionary[file_name.replace("icon_", "").replace(".svg", "").replace("_", "")] = load(dir_path + "/" + file_name) file_name = dir.get_next()