Commit: 3526f7a28ee45d3af418b10ccc735edaae2542ed
Author: Bastien Montagne
Date:   Tue Dec 1 15:45:44 2015 +0100
Branches: master
https://developer.blender.org/rB3526f7a28ee45d3af418b10ccc735edaae2542ed

Comment assert in id_us_min, currently we can get zero user count at this point.

===================================================================

M       source/blender/blenkernel/intern/library.c

===================================================================

diff --git a/source/blender/blenkernel/intern/library.c 
b/source/blender/blenkernel/intern/library.c
index a315a1f..f1e0bc6 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -192,7 +192,9 @@ void id_us_min(ID *id)
                const int limit = ID_FAKE_USERS(id);
                if (id->us <= limit) {
                        printf("ID user decrement error: %s (from '%s')\n", 
id->name, id->lib ? id->lib->filepath : "[Main]");
-                       BLI_assert(0);
+                       /* We cannot assert here, because of how we 'delete' 
datablocks currently (setting their usercount to zero),
+                        * this is weak but it's how it works for now. */
+                       /* BLI_assert(0); */
                        id->us = limit;
                }
                else {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to