Skip to content

Commit

Permalink
fix anim combine underline suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed May 1, 2023
1 parent 771c834 commit fadf386
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config/name="##VAR_GAME_NAME"
run/main_scene="res://src/Start.tscn"
config/features=PackedStringArray("4.0")
boot_splash/bg_color=Color(0.101961, 0.101961, 0.101961, 1)
config/icon="res://icon.png"
config/icon="res://icon.svg"

[autoload]

Expand Down
2 changes: 2 additions & 0 deletions scripts/anim_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def group_sprites(dir):
if entry.name.endswith('.png'):
pattern = re.compile(r"(-)?\d+\.png$")
prefix = pattern.split(entry.name)[0]
if prefix.endswith('_'):
prefix = prefix[:-1]

if groups.get(prefix) is None:
groups[prefix] = []
Expand Down

0 comments on commit fadf386

Please sign in to comment.