Geometry Nodes: Show node group in modifier UI after duplication

When duplicating the node group from the geometry node editor, show the
data-block selector in the modifier interface. Otherwise it's not clear
that the modifier is using a local data-block, not the original asset.
This commit is contained in:
Hans Goudey
2023-09-08 10:03:08 -04:00
parent 6642bd6220
commit be68db8ff9

View File

@@ -3688,6 +3688,8 @@ static int geometry_node_tree_copy_assign_exec(bContext *C, wmOperator * /*op*/)
bNodeTree *new_tree = (bNodeTree *)BKE_id_copy_ex(
bmain, &tree->id, nullptr, LIB_ID_COPY_ACTIONS | LIB_ID_COPY_DEFAULT);
nmd->flag &= ~NODES_MODIFIER_HIDE_DATABLOCK_SELECTOR;
if (new_tree == nullptr) {
return OPERATOR_CANCELLED;
}