feat(web): allow function nodes in native geometry fixtures
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-04 08:05:57 +08:00
parent 3357120b2d
commit 97a20fe8e8

View File

@@ -22,8 +22,8 @@ def main() -> int:
if output.is_absolute() or ".." in output.parts or output.suffix != ".blend" or not str(output).startswith("tests/files/web/"):
parser.error("--output must be a repository-relative .blend path under tests/files/web/")
nodes = list(dict.fromkeys(args.node))
if not nodes or any(not node.startswith("GeometryNode") or not node.replace("_", "").isalnum() for node in nodes):
parser.error("every --node must be a Blender GeometryNode identifier")
if not nodes or any(not (node.startswith("GeometryNode") or node.startswith("FunctionNode")) or not node.replace("_", "").isalnum() for node in nodes):
parser.error("every --node must be a Blender GeometryNode or FunctionNode identifier")
if not NATIVE_BLENDER.is_file():
raise SystemExit(f"native Blender fixture generator is unavailable: {NATIVE_BLENDER.relative_to(ROOT)}")
destination = ROOT / output