[Bf-blender-cvs] [ed8fee16ace] blender-v3.4-release: Fix: Hide "Squeeze Value" node from node search

Hans Goudey noreply at git.blender.org
Fri Nov 25 22:28:16 CET 2022


Commit: ed8fee16acea48173b10d399bff7315ff59e2dc1
Author: Hans Goudey
Date:   Fri Nov 25 14:59:27 2022 -0600
Branches: blender-v3.4-release
https://developer.blender.org/rBed8fee16acea48173b10d399bff7315ff59e2dc1

Fix: Hide "Squeeze Value" node from node search

Based on discussion in D10891, this node isn't meant to be exposed and
may be removed in the future. The fact that it was exposed in search
menus was a mistake from the implementation of link-drag-search
and bdb57541475f20ccc4.

I explicitly removed the link drag search implementation, and added
(Legacy) to the node name which hides it from the add node search.

===================================================================

M	source/blender/nodes/shader/nodes/node_shader_squeeze.cc

===================================================================

diff --git a/source/blender/nodes/shader/nodes/node_shader_squeeze.cc b/source/blender/nodes/shader/nodes/node_shader_squeeze.cc
index 62e21088791..33f6d15abfd 100644
--- a/source/blender/nodes/shader/nodes/node_shader_squeeze.cc
+++ b/source/blender/nodes/shader/nodes/node_shader_squeeze.cc
@@ -34,7 +34,8 @@ void register_node_type_sh_squeeze()
 
   static bNodeType ntype;
 
-  sh_node_type_base(&ntype, SH_NODE_SQUEEZE, "Squeeze Value", NODE_CLASS_CONVERTER);
+  sh_node_type_base(&ntype, SH_NODE_SQUEEZE, "Squeeze Value (Legacy)", NODE_CLASS_CONVERTER);
+  ntype.gather_link_search_ops = nullptr;
   ntype.declare = file_ns::node_declare;
   node_type_gpu(&ntype, file_ns::gpu_shader_squeeze);



More information about the Bf-blender-cvs mailing list