Blender Git Commit Log
Git Commits -> Revision 00166ff
Revision 00166ff by Bastien Montagne (master) March 14, 2016, 14:05 (GMT) |
Better fix for T47787 - remove extra user due to 'user_one' as soon as we increase 'real' user count. This has several benefits: * User count remains coherent, regardless of the order in which you use 'user_one' & real refcounting users (i.e. if you add to group, and then link in scene, or the reverse, you now always get same final user count). * Avoids the need to check for potential 'user_one' extra user in count in several places in code (e.g. when making IDs single users...). * Users won't wonder why they cannot make 'single user' and ID even though its user count shows '2'! * readfile.c now always uses code from BKE's library.c when modifying id->us. Which means we can consider (asside from assignment during initialization) that id->us is read-only outside of library.c context. Note that this commit reverts previous one (rB6b1d77a8052b) - please **do not** backport this one in 2.77. |
Commit Details:
Full Hash: 00166ff62e689b7caebdd3a0c4f9051b2739826a
Parent Commit: 6b1d77a
Lines Changed: +27, -10