Files
sporel-lib-core.puppet/init.lua
Axel Meyer cff7986cde feat: add load_textures + extend load_rig with asset_aliases
puppet.load_textures(rig, asset_aliases):
- Resolves bone.texture atlas-ids to texture-handles via the asset-
  lib indirection. Reads asset_aliases[rig.asset_pack] to get the
  asset-lib id, loads the lib's atlas.json, looks up the atlas-entry
  by id, then calls engine.asset.load_texture on the resolved file
  path.
- Resolves bone.anchor from the atlas entry unless the bone has an
  explicit anchor override.
- Raises clear errors when alias/atlas-pack/atlas-id is missing.

puppet.load_rig(path, asset_aliases?) now optionally calls
load_textures after build_rig if asset_aliases is supplied.

README updated with new API entries (load_rig signature, load_textures,
bone_world_transform, write_bone_test_only) and CHANGELOG v0.2.0 entry.
2026-05-18 03:09:26 +02:00

24 KiB