Renamed function more helpfully

This commit is contained in:
Jamie Hardt
2020-09-20 09:59:56 -07:00
parent ba8f20e0e2
commit 8e695140fb
2 changed files with 2 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ from typing import List
from random import choice from random import choice
from aud import Sound from aud import Sound
class SoundBank: class SoundBank:
def __init__(self, prefix): def __init__(self, prefix):
self.prefix = prefix self.prefix = prefix

View File

@@ -1,7 +1,7 @@
import bpy import bpy
import os import os
def read_some_data(filepath, pack, dir, fake): def import_wav_files(filepath, pack, dir, fake):
def import_one(fp): def import_one(fp):
sound = bpy.data.sounds.load(fp, check_existing=False) sound = bpy.data.sounds.load(fp, check_existing=False)
@@ -54,5 +54,5 @@ class ImportWav(Operator, ImportHelper):
) )
def execute(self, _): def execute(self, _):
return read_some_data(filepath=self.filepath, pack=False, dir=self.all_in_directory, fake=self.fake) return import_wav_files(filepath=self.filepath, pack=False, dir=self.all_in_directory, fake=self.fake)