Pin Blender for CI asset processing (#58)
CI / build-and-test (push) Successful in 1m31s
CI / production-build (push) Successful in 13m8s

Reviewed-on: #58
Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #58.
This commit is contained in:
2026-09-24 14:45:37 +00:00
committed by EIREXE
parent 1ba29b817b
commit 9a3a1383ff
4 changed files with 94 additions and 6 deletions
+9
View File
@@ -7,6 +7,15 @@ import sys
def main():
output = sys.argv[sys.argv.index("--") + 1]
actions_path = sys.argv[sys.argv.index("--") + 2]
source_path = sys.argv[sys.argv.index("--") + 3]
loaded_path = os.path.realpath(bpy.data.filepath)
expected_path = os.path.realpath(source_path)
if loaded_path != expected_path:
raise RuntimeError(
f"Blender loaded {loaded_path!r} instead of {expected_path!r}"
)
if not bpy.data.objects or not bpy.data.meshes:
raise RuntimeError("Blender loaded an empty scene")
with open(actions_path) as file:
actions_to_keep = set(json.load(file))