forked from bartvdbraak/blender
The material "Dynamic" node (disabled anyway) had incomplete base type initialization, which made it appear as an empty item in the input node category.
This commit is contained in:
parent
65bb4ff8d1
commit
4fe21e0b4f
@ -3436,7 +3436,7 @@ static void registerShaderNodes(ListBase *ntypelist)
|
||||
register_node_type_sh_value(ntypelist);
|
||||
register_node_type_sh_rgb(ntypelist);
|
||||
register_node_type_sh_texture(ntypelist);
|
||||
register_node_type_sh_dynamic(ntypelist);
|
||||
// register_node_type_sh_dynamic(ntypelist);
|
||||
register_node_type_sh_invert(ntypelist);
|
||||
register_node_type_sh_seprgb(ntypelist);
|
||||
register_node_type_sh_combrgb(ntypelist);
|
||||
|
@ -762,7 +762,7 @@ void register_node_type_sh_dynamic(ListBase *lb)
|
||||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
node_type_base(&ntype, SH_NODE_DYNAMIC, "Dynamic", NODE_CLASS_OP_DYNAMIC, NODE_OPTIONS, NULL, NULL);
|
||||
node_type_base(&ntype, NODE_DYNAMIC, "Dynamic", NODE_CLASS_OP_DYNAMIC, NODE_OPTIONS, NULL, NULL);
|
||||
node_type_size(&ntype, 150, 60, 300);
|
||||
node_type_init(&ntype, node_dynamic_init_cb);
|
||||
node_type_storage(&ntype, "NodeScriptDict", node_dynamic_free_storage_cb, node_dynamic_copy_cb);
|
||||
@ -777,7 +777,7 @@ void register_node_type_sh_dynamic(ListBase *lb)
|
||||
{
|
||||
static bNodeType ntype;
|
||||
|
||||
node_type_base(&ntype, 0, "", 0, 0, NULL, NULL);
|
||||
node_type_base(&ntype, NODE_DYNAMIC, "Dynamic", NODE_CLASS_OP_DYNAMIC, 0, NULL, NULL);
|
||||
|
||||
nodeRegisterType(lb, &ntype);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user