Silence assert on ID usercount for deprecated IPO.

We do not really care about those, so just avoid the noise when loading
very old files...

Re T75389.
This commit is contained in:
Bastien Montagne 2020-04-09 11:19:11 +02:00
parent 36746474fd
commit 80255e67e3
1 changed files with 5 additions and 1 deletions

View File

@ -320,7 +320,11 @@ void id_us_min(ID *id)
id->lib ? id->lib->filepath : "[Main]",
id->us,
limit);
BLI_assert(0);
if (GS(id->name) != ID_IP) {
/* Do not assert on deprecated ID types, we cannot really ensure that their ID refcounting
* is valid... */
BLI_assert(0);
}
id->us = limit;
}
else {