Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <b.mont29@gmail.com>2020-04-09 12:19:11 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-04-09 12:21:02 +0300
commit80255e67e30c4d77be64a5fa8dc68c0a55f39ebc (patch)
treef9b2359b623dc8324483920070f2ff58b8a14b50
parent36746474fdf4d05f3eccc45a42295dbbb7745d36 (diff)
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.
-rw-r--r--source/blender/blenkernel/intern/lib_id.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c
index 286ee4a8723..487ec0bf161 100644
--- a/source/blender/blenkernel/intern/lib_id.c
+++ b/source/blender/blenkernel/intern/lib_id.c
@@ -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 {