16 lines
667 B
PowerShell
16 lines
667 B
PowerShell
|
|
$ErrorActionPreference = 'Stop'
|
|||
|
|
$env:BLENDER_BIN = 'C:\Program Files\Blender Foundation\Blender 5.2\blender.exe'
|
|||
|
|
|
|||
|
|
# Риг создаётся один раз; --force пересобирает его с нуля.
|
|||
|
|
if (-not (Test-Path 'assets/monsters/monster_rig.blend')) {
|
|||
|
|
python tools/monster_assets.py monster-init
|
|||
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
python tools/monster_assets.py monster-render-all
|
|||
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|||
|
|
python tools/monster_assets.py validate --complete
|
|||
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|||
|
|
python -m spriteforge.cli validate assets/manifests/monsters.generated.yaml
|
|||
|
|
exit $LASTEXITCODE
|