Skip to content

Commit

Permalink
Fix animations not found on export
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Jowan-Spooner committed Sep 11, 2024
1 parent 308fb10 commit 978759e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dialogic/Core/index_class.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 978759e

Please sign in to comment.