[Bf-blender-cvs] [c23179f] master: Cleanup: minor deduplicate of code.

Bastien Montagne noreply at git.blender.org
Tue Nov 10 14:50:58 CET 2015


Commit: c23179f367a4931fa9e9e4820163a9ec0611d981
Author: Bastien Montagne
Date:   Tue Nov 10 14:49:35 2015 +0100
Branches: master
https://developer.blender.org/rBc23179f367a4931fa9e9e4820163a9ec0611d981

Cleanup: minor deduplicate of code.

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

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

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

diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index 5091ab7..b76323b 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -1214,12 +1214,8 @@ void BKE_libblock_free_us(Main *bmain, void *idv)      /* test users */
 {
 	ID *id = idv;
 	
-	id->us--;
+	id_us_min(id);
 
-	if (id->us < 0) {
-		if (id->lib) printf("ERROR block %s %s users %d\n", id->lib->name, id->name, id->us);
-		else printf("ERROR block %s users %d\n", id->name, id->us);
-	}
 	if (id->us == 0) {
 		switch (GS(id->name)) {
 			case ID_OB:




More information about the Bf-blender-cvs mailing list