UI: Fix 'extra' fake user showing in UI ID template usercount.

User do not care about that 'virtual' user, it only makes it more
confusing. So now, that template always shows actual number of real
users, we already have own dedicated button to show fake user status.
This commit is contained in:
Bastien Montagne 2018-11-02 14:36:41 +01:00
parent f2132b0237
commit 2e6637bdf6
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@ static void template_ID(
char numstr[32];
short numstr_len;
numstr_len = BLI_snprintf(numstr, sizeof(numstr), "%d", id->us);
numstr_len = BLI_snprintf(numstr, sizeof(numstr), "%d", ID_REAL_USERS(id));
but = uiDefBut(
block, UI_BTYPE_BUT, 0, numstr, 0, 0,