From d34618e6b40bef88c690bcd6ec1d45bbf4706ef4 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 27 Nov 2023 10:23:40 +0100 Subject: [PATCH] Geometry Nodes: muting zone input and output nodes is not allowed --- source/blender/nodes/geometry/nodes/node_geo_repeat_input.cc | 1 + source/blender/nodes/geometry/nodes/node_geo_repeat_output.cc | 1 + source/blender/nodes/geometry/nodes/node_geo_simulation_input.cc | 1 + .../blender/nodes/geometry/nodes/node_geo_simulation_output.cc | 1 + 4 files changed, 4 insertions(+) diff --git a/source/blender/nodes/geometry/nodes/node_geo_repeat_input.cc b/source/blender/nodes/geometry/nodes/node_geo_repeat_input.cc index 22cf3dfa49a..8a207e6d975 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_repeat_input.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_repeat_input.cc @@ -79,6 +79,7 @@ static void node_register() ntype.declare = node_declare; ntype.gather_link_search_ops = nullptr; ntype.insert_link = node_insert_link; + ntype.no_muting = true; node_type_storage( &ntype, "NodeGeometryRepeatInput", node_free_standard_storage, node_copy_standard_storage); nodeRegisterType(&ntype); diff --git a/source/blender/nodes/geometry/nodes/node_geo_repeat_output.cc b/source/blender/nodes/geometry/nodes/node_geo_repeat_output.cc index 910eb3f9d87..9cfad3557c9 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_repeat_output.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_repeat_output.cc @@ -90,6 +90,7 @@ static void node_register() ntype.initfunc = node_init; ntype.declare = node_declare; ntype.insert_link = node_insert_link; + ntype.no_muting = true; node_type_storage(&ntype, "NodeGeometryRepeatOutput", node_free_storage, node_copy_storage); nodeRegisterType(&ntype); } diff --git a/source/blender/nodes/geometry/nodes/node_geo_simulation_input.cc b/source/blender/nodes/geometry/nodes/node_geo_simulation_input.cc index 950bf299799..735baa4ac7e 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_simulation_input.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_simulation_input.cc @@ -241,6 +241,7 @@ static void node_register() ntype.declare = node_declare; ntype.insert_link = node_insert_link; ntype.gather_link_search_ops = nullptr; + ntype.no_muting = true; node_type_storage(&ntype, "NodeGeometrySimulationInput", node_free_standard_storage, diff --git a/source/blender/nodes/geometry/nodes/node_geo_simulation_output.cc b/source/blender/nodes/geometry/nodes/node_geo_simulation_output.cc index cd059272c74..a5e7e0c4f7d 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_simulation_output.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_simulation_output.cc @@ -883,6 +883,7 @@ static void node_register() ntype.gather_link_search_ops = nullptr; ntype.insert_link = node_insert_link; ntype.draw_buttons_ex = node_layout_ex; + ntype.no_muting = true; node_type_storage(&ntype, "NodeGeometrySimulationOutput", node_free_storage, node_copy_storage); nodeRegisterType(&ntype); }