Skip to content

Commit

Permalink
Play Sound node: fix version check once more
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzBrueckner committed Dec 21, 2023
1 parent 8e8af90 commit a67b5f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blender/arm/logicnode/sound/LN_play_sound.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def draw_buttons(self, context, layout):
row.prop(self, 'property4')

def get_replacement_node(self, node_tree: bpy.types.NodeTree):
if self.arm_version not in (0, 2):
raise LookupError()
if 0 <= self.arm_version <= 2:
return NodeReplacement.Identity(self)

return NodeReplacement.Identity(self)
raise LookupError()

0 comments on commit a67b5f5

Please sign in to comment.