From 6f7dd08e9ee17817701b9cd932d1084f2d0650e6 Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 27 Nov 2026 16:57:12 +0100 Subject: [PATCH] package_hull: no Blender version refusal (Steam's Blender is 5.3 now); the fixture manifest's rows fit its raster Co-Authored-By: Claude Sonnet 5.5 --- tools/blender/package_hull.py | 3 +-- .../tests/fixtures/hulls/zh-ammo-tender/package.json | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/blender/package_hull.py b/tools/blender/package_hull.py index a76a420a9..540b9c607 100644 --- a/tools/blender/package_hull.py +++ b/tools/blender/package_hull.py @@ -172,8 +172,7 @@ def package(manifest, manifest_dir, game, packages, openscad, replace): aetherdb = game / "ModTools" / "AetherDb.exe" if package_dir.exists() and not replace: raise Refused(f"{package_dir} exists; pass --replace to re-derive it (this discards edits made since)") - if bpy.app.version[:2] != (5, 2): - raise Refused(f"This packager is for Blender 5.2; this is {bpy.app.version_string}") + print(f"STEP Blender {bpy.app.version_string}", flush=True) if package_dir.exists(): shutil.rmtree(package_dir) created.append(package_dir) diff --git a/tools/blender/tests/fixtures/hulls/zh-ammo-tender/package.json b/tools/blender/tests/fixtures/hulls/zh-ammo-tender/package.json index a9e5d6b65..da7d12112 100644 --- a/tools/blender/tests/fixtures/hulls/zh-ammo-tender/package.json +++ b/tools/blender/tests/fixtures/hulls/zh-ammo-tender/package.json @@ -12,10 +12,10 @@ "stats": {"mass": 20000, "durability": 2000, "armor": 20, "drag": 0.35}, "rows": [ {"id": "Gun.D", "kind": "Ballistic", "cell": [2, 3], "footprint": "#", "rotation": 0, "armor": 20, "arc": 90}, - {"id": "Th.L", "kind": "Thruster", "cell": [0, 0], "footprint": "#", "rotation": 2, "armor": 20, "arc": 0}, - {"id": "Th.R", "kind": "Thruster", "cell": [1, 0], "footprint": "#", "rotation": 2, "armor": 20, "arc": 0}, - {"id": "Ra.L", "kind": "Radiator", "cell": [2, 0], "footprint": "#", "rotation": 0, "armor": 10, "arc": 0}, - {"id": "Ra.R", "kind": "Radiator", "cell": [3, 0], "footprint": "#", "rotation": 0, "armor": 10, "arc": 0}, - {"id": "Reactor", "kind": "Reactor", "cell": [1, 1], "footprint": "#", "rotation": 0, "armor": 0, "arc": 0} + {"id": "Th.L", "kind": "Thruster", "cell": [3, 0], "footprint": "#", "rotation": 2, "armor": 20, "arc": 0}, + {"id": "Th.R", "kind": "Thruster", "cell": [4, 0], "footprint": "#", "rotation": 2, "armor": 20, "arc": 0}, + {"id": "Ra.L", "kind": "Radiator", "cell": [2, 1], "footprint": "#", "rotation": 0, "armor": 10, "arc": 0}, + {"id": "Ra.R", "kind": "Radiator", "cell": [5, 1], "footprint": "#", "rotation": 0, "armor": 10, "arc": 0}, + {"id": "Reactor", "kind": "Reactor", "cell": [3, 2], "footprint": "#", "rotation": 0, "armor": 0, "arc": 0} ] }