mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T84624: node group data-block has phantom user
This is because the node editor added a "real user" to the node group that it displays. It was mainly added as a hack to solve issues with custom tree types (T36024). Since we can store id references in custom properties now, this "real user" is not really necessary anymore. Given that we are close to a release, I'll only disable line for geometry nodes, for which the bug has been reported. Discussed this solution with Hans Goudey.
This commit is contained in:
parent
7c864388fc
commit
9cccbbebaa
1 changed files with 6 additions and 1 deletions
|
|
@ -80,7 +80,12 @@ void ED_node_tree_start(SpaceNode *snode, bNodeTree *ntree, ID *id, ID *from)
|
|||
|
||||
BLI_addtail(&snode->treepath, path);
|
||||
|
||||
id_us_ensure_real(&ntree->id);
|
||||
if (ntree->type != NTREE_GEOMETRY) {
|
||||
/* This can probably be removed for all node tree types. It mainly exists because it was not
|
||||
* possible to store id references in custom properties. Also see T36024. I don't want to
|
||||
* remove it for all tree types in bcon3 though. */
|
||||
id_us_ensure_real(&ntree->id);
|
||||
}
|
||||
}
|
||||
|
||||
/* update current tree */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue