Browse Source

Fix #279.

Don't error if random kickable sounds have no surface selected.
pull/282/head
Adam Johnson 3 years ago
parent
commit
e2961208e7
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/properties/modifiers/sound.py

2
korman/properties/modifiers/sound.py

@ -113,7 +113,7 @@ class PlasmaRandomSound(PlasmaModifierProperties):
raise RuntimeError()
def post_export(self, exporter, bo, so):
if self.mode == "collision":
if self.mode == "collision" and self.surfaces:
parent_bo = bo.parent
if parent_bo is None:
raise ExportError("[{}]: Collision sound objects MUST be parented directly to the collider object.", bo.name)

Loading…
Cancel
Save