Browse Source

Sounds: allow paths relative to the Blender file.

pull/308/head
Jrius 2 years ago
parent
commit
5a1d93f584
  1. 2
      korman/properties/modifiers/sound.py

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

Loading…
Cancel
Save