Fix #105314: Custom node groups missing sockets

`ShaderNodeCustomGroup` and others lost their UI with
7026096099 without a dynamic declaration callback.
This commit is contained in:
Hans Goudey
2023-02-28 13:59:28 -05:00
parent 076a33ccd1
commit 15f59470a3
3 changed files with 3 additions and 1 deletions

View File

@@ -46,4 +46,5 @@ void register_node_type_cmp_custom_group(bNodeType *ntype)
if (ntype->insert_link == nullptr) {
ntype->insert_link = node_insert_link_default;
}
ntype->declare_dynamic = blender::nodes::node_group_declare_dynamic;
}

View File

@@ -67,4 +67,5 @@ void register_node_type_geo_custom_group(bNodeType *ntype)
if (ntype->insert_link == nullptr) {
ntype->insert_link = node_insert_link_default;
}
ntype->declare_dynamic = blender::nodes::node_group_declare_dynamic;
}

View File

@@ -110,6 +110,6 @@ void register_node_type_sh_custom_group(bNodeType *ntype)
if (ntype->insert_link == nullptr) {
ntype->insert_link = node_insert_link_default;
}
ntype->declare_dynamic = blender::nodes::node_group_declare_dynamic;
ntype->gpu_fn = gpu_group_execute;
}