"""Bundled characters and every animation FBX in their source folders.""" import re from .paths import PROJECT, slug BASE = PROJECT / "source_assets/character" FIGHTER_MODEL = BASE / "fighter/Maria WProp J J Ong.fbx" CREATURE_MODEL = BASE / "creature/Maw J Laygo.fbx" def _clips(model): clips = {} for path in sorted(model.parent.glob("*.fbx")): if path == model: continue key = re.sub(r"[^a-z0-9]+", "_", path.stem.lower()).strip("_") slug(key) if key in clips: raise ValueError(f"Powtorzona nazwa animacji: {key}") clips[key] = path return clips