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:
2018-11-02 14:33:38 +01:00
parent 8197b247d9
commit f2132b0237

View File

@@ -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;