Ajout d'assets globaux

This commit is contained in:
Tipragot 2023-11-03 09:27:33 +01:00
parent c335c03208
commit 3ad2f91a17

View file

@ -178,6 +178,7 @@ def loading_scene(target: Scene, name: str, clear_cache: bool = True):
def __init__(self):
self.files = glob.glob(f"assets/{name}/**/*", recursive=True)
self.files.extend(glob.glob("assets/global/**/*", recursive=True))
random.shuffle(self.files)
self.total = len(self.files)