Skip to content

Commit

Permalink
mod_blend: Fix audio detection
Browse files Browse the repository at this point in the history
  • Loading branch information
morevnaproject committed Jan 14, 2014
1 parent 2b06019 commit c0a3326
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/mod_blend
Expand Up @@ -168,15 +168,12 @@ EOF
audio_found=False
for path in bpy.utils.blend_paths(0):
if path.endswith(".wav"):
audio_found=True
import os
audio_filename = os.path.splitext("$AUDIO_FILENAME")[0]
audio_filename += ".wav"
bpy.ops.sound.mixdown(filepath=audio_filename, check_existing=False, container="WAV")
break
if audio_found:
import os
audio_filename = os.path.splitext("$AUDIO_FILENAME")[0]
audio_filename += ".wav"
bpy.ops.sound.mixdown(filepath=audio_filename, check_existing=False, container="WAV")
if __name__ == '__main__':
main()
EOF
Expand Down

0 comments on commit c0a3326

Please sign in to comment.