From f1bb089410cfd1018fd1527a0b73c4ac7465df48 Mon Sep 17 00:00:00 2001 From: Libby Date: Tue, 10 Nov 2026 17:53:45 +0000 Subject: [PATCH] Blender node actions: refuse image-texture nodes in code; point docs at PR #3 GeometryNodeImageTexture, GeometryNodeInputImage and ShaderNodeTexIES passed check_idname though the docs said image-texture nodes are refused. The design doc is not in this tree. Co-Authored-By: Claude Sonnet 5.5 --- surfaces/blender/brokkr_bridge/node_actions.py | 7 ++++--- surfaces/blender/docs/node-actions.md | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/surfaces/blender/brokkr_bridge/node_actions.py b/surfaces/blender/brokkr_bridge/node_actions.py index caba5ed..5210b86 100644 --- a/surfaces/blender/brokkr_bridge/node_actions.py +++ b/surfaces/blender/brokkr_bridge/node_actions.py @@ -3,7 +3,7 @@ Owner of how an intent becomes a node group, a node, a link or a modifier input on Blender 5.2. Validation is plain Python and runs before bpy is touched; apply steps that can still fail after Blender has been asked (an unknown node type, an enum that is not offered) undo what they made, so a -refused intent leaves the tree as it was. Docs: docs/blender-node-graphs.md. +refused intent leaves the tree as it was. Docs: docs/node-actions.md. The design is PR #3 (branch libby/blender-node-graphs-design). """ from __future__ import annotations @@ -16,9 +16,10 @@ from .scene_actions import ActionRefused ID_PATTERN = re.compile(r"[A-Za-z0-9._-]{1,63}") KEY_PATTERN = re.compile(r"[A-Za-z0-9 ._-]{1,63}") # A geometry tree may hold geometry, function and shader math nodes. Nodes that read or write files, -# run code, write caches or nest groups are not part of this cut. +# run code, write caches, nest groups or sample images are not part of this cut. NODE_IDNAME = re.compile(r"(GeometryNode|FunctionNode|ShaderNode)[A-Za-z0-9]+") -NODE_DENIED = ("Import", "Export", "Script", "Bake", "Group", "Simulation", "Repeat", "Foreach", "Viewer", "TexImage", "TexEnvironment") +NODE_DENIED = ("Import", "Export", "Script", "Bake", "Group", "Simulation", "Repeat", "Foreach", "Viewer", "TexImage", "TexEnvironment", + "ImageTexture", "InputImage", "TexIES") MAX_NODES = 500 MAX_INTERFACE = 64 MAX_MODIFIERS = 8 diff --git a/surfaces/blender/docs/node-actions.md b/surfaces/blender/docs/node-actions.md index d998fae..3458b95 100644 --- a/surfaces/blender/docs/node-actions.md +++ b/surfaces/blender/docs/node-actions.md @@ -3,7 +3,7 @@ Command intents (`brokkr.blender.command_intent.v0`) that build and drive a Geometry Nodes graph. Owner: `brokkr_bridge/node_actions.py`; the target only dispatches. Every field is validated before `bpy` is touched; a refused intent is a `failed` receipt naming the rule and leaves the tree as it was. -Design and the parts not built yet: `docs/blender-node-graphs.md` (on `libby/blender-node-graphs-design`). +Design and the parts not built yet: the design document lives in PR #3 (branch `libby/blender-node-graphs-design`), not in this tree. | action | fields | rule | |---|---|---|