diff options
author | Bastien Montagne <bastien@blender.org> | 2020-10-07 11:18:05 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-10-07 11:18:45 +0300 |
commit | 7f7efe78ceeb2d5f7b6d1049f97a410c11701c99 (patch) | |
tree | 63d9067efb1791a85c7ea7db83ef89a88c2ed3e5 | |
parent | 5b97e50976b0b4c54b725dc6a85c9736904bccdb (diff) |
Silence CLOG error about usercount of deprecated IPO IDs.
-rw-r--r-- | source/blender/blenkernel/intern/lib_id.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index 675e3956102..8f3d05ce914 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -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; |