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:
parent
36746474fd
commit
80255e67e3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue