Browse Source

Fix type error with SoundMsg node.

Reported on the forum by dendwaler
https://forum.guildofwriters.org/viewtopic.php?p=75543#p75543
pull/268/head
Adam Johnson 3 years ago
parent
commit
e6051f6d7e
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/nodes/node_messages.py

2
korman/nodes/node_messages.py

@ -803,7 +803,7 @@ class PlasmaSoundMsgNode(idprops.IDPropObjectMixin, PlasmaMessageWithCallbacksNo
msg.volume = 0.0
elif self.volume == "CUSTOM":
msg.setCmd(plSoundMsg.kSetVolume)
msg.volume = self.volume_pct
msg.volume = self.volume_pct / 100.0
if self.looping != "CURRENT":
msg.setCmd(getattr(plSoundMsg, self.looping))

Loading…
Cancel
Save