Browse Source

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.
pull/97/head
Adam Johnson 7 years ago
parent
commit
4a435ae01b
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 4
      korman/properties/modifiers/sound.py

4
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:

Loading…
Cancel
Save