Browse Source

Revert Random Sound Check

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

5
korman/properties/modifiers/sound.py

@ -373,11 +373,6 @@ 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.dataBuffer = self._find_sound_buffer(exporter, so, wavHeader, dataSize, channel)

Loading…
Cancel
Save