From e2961208e78af905730f608cd7ecf67f04e88624 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 23 Aug 2021 12:38:57 -0400 Subject: [PATCH] Fix #279. Don't error if random kickable sounds have no surface selected. --- korman/properties/modifiers/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/properties/modifiers/sound.py b/korman/properties/modifiers/sound.py index de148f4..0559d08 100644 --- a/korman/properties/modifiers/sound.py +++ b/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)