Tweak to improve performance
This commit is contained in:
@@ -28,7 +28,7 @@ class SoundBank:
|
|||||||
|
|
||||||
if sound.filepath in self.cached_info.keys():
|
if sound.filepath in self.cached_info.keys():
|
||||||
return self.cached_info[sound.filepath]
|
return self.cached_info[sound.filepath]
|
||||||
|
else:
|
||||||
if sound.filepath.startswith("//"):
|
if sound.filepath.startswith("//"):
|
||||||
path = bpy.path.abspath(sound.filepath)
|
path = bpy.path.abspath(sound.filepath)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user