Commit: d059fe522b412e201f002cb84282a9e8c5ee1e52
Author: Jacques Lucke
Date: Thu Mar 4 18:06:56 2021 +0100
Branches: temp-derived-node-tree-refactor
https://developer.blender.org/rBd059fe522b412e201f002cb84282a9e8c5ee1e52
cleanup
===================================================================
M source/blender/nodes/function/nodes/node_fn_group_instance_id.cc
===================================================================
diff --git a/source/blender/nodes/function/nodes/node_fn_group_instance_id.cc
b/source/blender/nodes/function/nodes/node_fn_group_instance_id.cc
index c802a66b9b7..925127e1e27 100644
--- a/source/blender/nodes/function/nodes/node_fn_group_instance_id.cc
+++ b/source/blender/nodes/function/nodes/node_fn_group_instance_id.cc
@@ -24,7 +24,14 @@ static bNodeSocketTemplate fn_node_group_instance_id_out[] =
{
static void fn_node_group_instance_id_expand_in_mf_network(
blender::nodes::NodeMFNetworkBuilder &builder)
{
- builder.set_not_implemented();
+ const blender::nodes::DNode &node = builder.dnode();
+ std::string id = "/";
+ for (const blender::nodes::DTreeContext *context = node.context(); context;
+ context = context->parent_context()) {
+ id = "/" + context->parent_node()->name() + id;
+ }
+
builder.construct_and_set_matching_fn<blender::fn::CustomMF_Constant<std::string>>(
+ std::move(id));
}
void register_node_type_fn_group_instance_id()
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs