Silence CLOG error about usercount of deprecated IPO IDs.

This commit is contained in:
Bastien Montagne 2020-10-07 10:18:05 +02:00
parent 5b97e50976
commit 7f7efe78ce
1 changed files with 6 additions and 6 deletions

View File

@ -281,15 +281,15 @@ void id_us_min(ID *id)
const int limit = ID_FAKE_USERS(id);
if (id->us <= limit) {
CLOG_ERROR(&LOG,
"ID user decrement error: %s (from '%s'): %d <= %d",
id->name,
id->lib ? id->lib->filepath_abs : "[Main]",
id->us,
limit);
if (GS(id->name) != ID_IP) {
/* Do not assert on deprecated ID types, we cannot really ensure that their ID refcounting
* is valid... */
CLOG_ERROR(&LOG,
"ID user decrement error: %s (from '%s'): %d <= %d",
id->name,
id->lib ? id->lib->filepath_abs : "[Main]",
id->us,
limit);
BLI_assert(0);
}
id->us = limit;