From 5a1d93f5849dc8ad5872427867d28221bd564caa Mon Sep 17 00:00:00 2001 From: Jrius <2261279+Jrius@users.noreply.github.com> Date: Tue, 21 Dec 2021 10:19:00 +0100 Subject: [PATCH] Sounds: allow paths relative to the Blender file. --- 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 0559d08..65c427e 100644 --- a/korman/properties/modifiers/sound.py +++ b/korman/properties/modifiers/sound.py @@ -423,7 +423,7 @@ class PlasmaSound(idprops.IDPropMixin, bpy.types.PropertyGroup): if sound.packed_file is None: stream = hsFileStream() try: - stream.open(sound.filepath, fmRead) + stream.open(bpy.path.abspath(sound.filepath), fmRead) except IOError: self._raise_error("failed to open file") else: