Skip to content

Commit

Permalink
Fix alt animations
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffyOMC committed May 31, 2024
1 parent 6b35e99 commit 1cfbf3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion psychtobase/src/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def playAnimation(time:float, target: str, anim: str, force: bool):
"""
Function created for faster creation of Play Animation events
"""
return event(time, "PlayAnimation", {"target": target, "anim": anim, "force": force})
return event(time, "PlayAnimation", {"target": target, "anim": anim, "force": force}) # Force is enabled on Play Animation events, not Alt Animation

def coolText(text:str) -> str:
length = max(30, len(text) + 5)
Expand Down
4 changes: 2 additions & 2 deletions psychtobase/src/tools/ChartTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ def convert(self):
anim = "singUP-alt"
elif noteData in [3, 7]:
anim = "singRIGHT-alt"
play_animation = (strumTime, target, anim, True)
play_animation = (strumTime, target, anim)

if play_animation not in existing_events:
events.append(Utils.playAnimation(strumTime, target, anim, True))
events.append(Utils.playAnimation(strumTime, target, anim, False))
existing_events.add(play_animation)

notes.append(Utils.note(noteData, length, strumTime))
Expand Down

0 comments on commit 1cfbf3b

Please sign in to comment.