From 08d61e11c08015d10370fa7cde83f5163a4b2e49 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Sat, 2 Apr 2022 19:30:10 -0400 Subject: [PATCH] Revert node_messages.py to remove LocalOnly references per Hoikas --- korman/nodes/node_messages.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/korman/nodes/node_messages.py b/korman/nodes/node_messages.py index fc2d1f3..1c2fa4d 100644 --- a/korman/nodes/node_messages.py +++ b/korman/nodes/node_messages.py @@ -804,7 +804,6 @@ class PlasmaSoundMsgNode(idprops.IDPropObjectMixin, PlasmaMessageWithCallbacksNo def _convert_random_sound_msg(self, exporter, so): # Yas, plAnimCmdMsg - soundemit = self.emitter_object.plasma_modifiers.soundemit msg = plAnimCmdMsg() msg.addReceiver(exporter.mgr.find_key(plRandomSoundMod, bl=self.emitter_object)) @@ -819,10 +818,6 @@ class PlasmaSoundMsgNode(idprops.IDPropObjectMixin, PlasmaMessageWithCallbacksNo # No, you are not imagining things... msg.setCmd(plAnimCmdMsg.kSetSpeed, True) msg.speed = self.volume_pct / 100.0 if self.volume == "CUSTOM" else 0.0 - # Checking for local only - for snd in soundemit.sounds: - if snd.local_only: - msg.setCmd(plAnimCmdMsg.kIsLocalOnly, True) yield msg @@ -863,10 +858,6 @@ class PlasmaSoundMsgNode(idprops.IDPropObjectMixin, PlasmaMessageWithCallbacksNo msg.setCmd(getattr(plSoundMsg, self.looping)) if self.action != "CURRENT": msg.setCmd(getattr(plSoundMsg, self.action)) - # Is the sound local? Let's check the modifier... - for snd in soundemit.sounds: - if snd.local_only: - msg.setCmd(plSoundMsg.kIsLocalOnly) # Because we might be giving two messages here... yield msg