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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user