[Bf-blender-cvs] [9ef24d5aaa1] master: Geometry Nodes: fix error adding a value node

Philipp Oeser noreply at git.blender.org
Wed Mar 10 22:21:51 CET 2021


Commit: 9ef24d5aaa190b3429756368f29c9acfaf2b2605
Author: Philipp Oeser
Date:   Wed Mar 10 22:19:36 2021 +0100
Branches: master
https://developer.blender.org/rB9ef24d5aaa190b3429756368f29c9acfaf2b2605

Geometry Nodes: fix error adding a value node

Caused by own rBcf2933c38a34 which changed the poll on this node to be
"shading-only", but this one is actually supported.

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

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

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

diff --git a/source/blender/nodes/shader/nodes/node_shader_value.cc b/source/blender/nodes/shader/nodes/node_shader_value.cc
index a1ef65a5655..495c8d12824 100644
--- a/source/blender/nodes/shader/nodes/node_shader_value.cc
+++ b/source/blender/nodes/shader/nodes/node_shader_value.cc
@@ -50,7 +50,7 @@ void register_node_type_sh_value(void)
 {
   static bNodeType ntype;
 
-  sh_node_type_base(&ntype, SH_NODE_VALUE, "Value", NODE_CLASS_INPUT, 0);
+  sh_fn_node_type_base(&ntype, SH_NODE_VALUE, "Value", NODE_CLASS_INPUT, 0);
   node_type_socket_templates(&ntype, nullptr, sh_node_value_out);
   node_type_gpu(&ntype, gpu_shader_value);
   ntype.expand_in_mf_network = sh_node_value_expand_in_mf_network;



More information about the Bf-blender-cvs mailing list