Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dalai@blender.org>2022-10-25 11:15:24 +0300
committerDalai Felinto <dalai@blender.org>2022-10-25 11:15:24 +0300
commit7e3e4751b544bce290288de4af8651847d230655 (patch)
tree3680970521d9a8abce2def9d10a2081816fbd208 /source/blender/editors/space_node/node_draw.cc
parent3e292404d27dc5aaddc2fcca67ceedf7e30d2cbc (diff)
UI: Fix count on node editor/group header when fake user
The number of node groups was including the fake user count. I was ignoring the Fake User, and how it affects the id->us count. This problem was present since the initial commit: 84825e4ed2e09895.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.cc')
-rw-r--r--source/blender/editors/space_node/node_draw.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc
index 98b2cacd162..5ae6573df7c 100644
--- a/source/blender/editors/space_node/node_draw.cc
+++ b/source/blender/editors/space_node/node_draw.cc
@@ -2146,7 +2146,7 @@ static void node_draw_basis(const bContext &C,
"");
UI_but_func_set(but, node_toggle_button_cb, &node, (void *)"NODE_OT_group_edit");
if (node.id) {
- UI_but_icon_indicator_number_set(but, node.id->us);
+ UI_but_icon_indicator_number_set(but, ID_REAL_USERS(node.id));
}
UI_block_emboss_set(&block, UI_EMBOSS);
}