Renamed function more helpfully
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user