From cd0b703cc1d2789e9594b1df95ed342c59cd8fc9 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 29 Oct 2019 14:11:52 -0400 Subject: [PATCH] Fix packed sound datablocks producing invalid SoundBuffers. --- korman/properties/modifiers/sound.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/korman/properties/modifiers/sound.py b/korman/properties/modifiers/sound.py index 49d5893..ec4482b 100644 --- a/korman/properties/modifiers/sound.py +++ b/korman/properties/modifiers/sound.py @@ -17,7 +17,6 @@ import bpy from bpy.props import * from bpy.app.handlers import persistent import math -from pathlib import Path from PyHSPlasma import * from ... import korlib @@ -303,7 +302,7 @@ class PlasmaSound(idprops.IDPropMixin, bpy.types.PropertyGroup): def _find_sound_buffer(self, exporter, so, wavHeader, dataSize, channel): # First, cleanup the file path to not have directories - filename = Path(self._sound.filepath).name + filename = bpy.path.basename(self._sound.filepath) if channel is None: key_name = filename else: