Browse Source

Revert Random Sound Check

Backtrack local only/random sound check
pull/295/head
Patrick Dulebohn 2 years ago
parent
commit
3b13d2e3d2
  1. 7
      korman/properties/modifiers/sound.py

7
korman/properties/modifiers/sound.py

@ -373,12 +373,7 @@ class PlasmaSound(idprops.IDPropMixin, bpy.types.PropertyGroup):
if self.incidental:
sound.properties |= plSound.kPropIncidental
if self.local_only:
# Local only and random sounds hate each other, so we must check for both
for i in bpy.data.objects:
if i.plasma_modifiers.random_sound:
raise ExportError("SoundEmitter '{}': cannot have local only sounds and a random sound mod.".format(self.id_data.name))
else:
sound.properties |= plSound.kPropLocalOnly
sound.properties |= plSound.kPropLocalOnly
sound.dataBuffer = self._find_sound_buffer(exporter, so, wavHeader, dataSize, channel)
# Cone effect

Loading…
Cancel
Save