From 31a4fb42d42af66ce6436803cad6d30173f34245 Mon Sep 17 00:00:00 2001 From: Charlie Jolly Date: Wed, 5 Oct 2022 13:19:19 +0100 Subject: Fix T101613: Muted Mix node wrongly connects to Factor socket T101613: Muting/ctrl+x deleting the new mix node in Float mode passes through the wrong input. Fix by setting no_muted_links() on Factor sockets. --- source/blender/nodes/shader/nodes/node_shader_mix.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/nodes/shader/nodes/node_shader_mix.cc b/source/blender/nodes/shader/nodes/node_shader_mix.cc index 5ab26100a48..2efd57155b9 100644 --- a/source/blender/nodes/shader/nodes/node_shader_mix.cc +++ b/source/blender/nodes/shader/nodes/node_shader_mix.cc @@ -23,11 +23,13 @@ static void sh_node_mix_declare(NodeDeclarationBuilder &b) { b.is_function_node(); b.add_input(N_("Factor"), "Factor_Float") + .no_muted_links() .default_value(0.5f) .min(0.0f) .max(1.0f) .subtype(PROP_FACTOR); b.add_input(N_("Factor"), "Factor_Vector") + .no_muted_links() .default_value(float3(0.5f)) .subtype(PROP_FACTOR); -- cgit v1.2.3