feat(web): allow function nodes in native geometry fixtures
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user