From 978759efecc78ac759ef7ddf59f1324c783d9111 Mon Sep 17 00:00:00 2001 From: Jowan-Spooner Date: Thu, 12 Sep 2024 00:36:36 +0200 Subject: [PATCH] Fix animations not found on export A classic error. When exported scripts get converted to .gdc files. This means our stupid stupid .ends_with("gd") logic won't find the animation script :(. This should be a bit better. --- addons/dialogic/Core/index_class.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/dialogic/Core/index_class.gd b/addons/dialogic/Core/index_class.gd index c045a0342..30c8fa088 100644 --- a/addons/dialogic/Core/index_class.gd +++ b/addons/dialogic/Core/index_class.gd @@ -86,7 +86,7 @@ func list_special_resources(subdir:='', extension:="") -> Dictionary: func list_animations(subdir := "") -> Dictionary: var full_animation_list := {} for path in list_dir(subdir): - if not path.ends_with(".gd"): + if not path.ends_with(".gd") and not path.ends_with(".gdc"): continue var anim_object: DialogicAnimation = load(path).new() var versions := anim_object._get_named_variations()