UI: Fix showing '2' number of users in ID templates for fake-user IDs.
Using FakeUser on an ID sill put its usercount to 2 if it is actually also 'really' used once. But we do not want to show that to user (especially not since it also allows to 'make single user' of an ID already only used once...).
This commit is contained in:
parent
8197b247d9
commit
f2132b0237
Notes:
blender-bot
2023-02-14 09:38:57 +01:00
Referenced by issue #65589, Datablocks can't be duplicated everywhere, because trick with fake user no longer works
|
@ -722,7 +722,7 @@ static void template_ID(
|
|||
UI_but_funcN_set(but, template_id_cb, MEM_dupallocN(template_ui), POINTER_FROM_INT(UI_ID_OVERRIDE));
|
||||
}
|
||||
|
||||
if (id->us > 1) {
|
||||
if (ID_REAL_USERS(id) > 1) {
|
||||
char numstr[32];
|
||||
short numstr_len;
|
||||
|
||||
|
|
Loading…
Reference in New Issue