Skip to content

Commit

Permalink
hotfix for #5
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesa08 committed Aug 26, 2022
1 parent 4ed2cee commit 1381c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MIDIAnimator/src/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self):
self._instruments = []

def addInstrument(self, instrumentType: str, midiTrack: MIDITrack, objectCollection: bpy.types.Collection, properties=None, custom=None, customVars: Dict=None):
assert isinstance(midiTrack, MIDITrack), "Please pass in a type MIDITrack object."
assert type(midiTrack).__name__ == "MIDITrack", "Please pass in a type MIDITrack object."
assert isinstance(objectCollection, bpy.types.Collection), "Please pass in a type collection for the objects to be animated."
assert instrumentType in {"evaluate", "projectile", "custom"}, "Instrument type invalid."

Expand Down

0 comments on commit 1381c40

Please sign in to comment.