From 4a435ae01b3c73945898ebf85bb103ee38ad987c Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 7 Jul 2018 18:23:50 -0400 Subject: [PATCH] Fix #81 This fix only changes the behavior to use whatever the original filename is. A complete fix would involve managing sound files and ensuring that they are ogg-compressed. --- korman/properties/modifiers/sound.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/korman/properties/modifiers/sound.py b/korman/properties/modifiers/sound.py index e907497..db3a297 100644 --- a/korman/properties/modifiers/sound.py +++ b/korman/properties/modifiers/sound.py @@ -299,8 +299,8 @@ class PlasmaSound(idprops.IDPropMixin, bpy.types.PropertyGroup): stream.close() def _find_sound_buffer(self, exporter, so, wavHeader, dataSize, channel): - # First, cleanup the file path to not have directories and have the .ogg extension - filename = Path(self._sound.filepath).with_suffix(".ogg").name + # First, cleanup the file path to not have directories + filename = Path(self._sound.filepath).name if channel is None: key_name = filename else: