Files
test/source/blender/blenkernel
Bastien Montagne 2ac555fe47 ID: Sanitize handling of 'USER_ONE' (ensure_user) case.
Note that this has little impact on current master - yet it allows to fix the 'Image Editor' bug
(open image in editor, use same image in texture, delete image from texture, image us is 0 and
red in image editor...) and probably a few other similar cases.

But that change is mandatory to get a proper handling of ID deletion/reamapping/reloading/etc. as done in id-remap branch.

Instead of just adding a user if none already present, new code use two new ID tags to get a three-states status:
  - Normal: nothing changes.
  - Needs extra user: we know that ID needs an extra user, so we take of never going down to 0 in 'real' usercount handling.
  - Has extra user: we do have increased that ID usercount to get our needed extrauser.

Reviewers: sergey, campbellbarton

Differential Revision: https://developer.blender.org/D1696
2016-01-04 20:17:23 +01:00
..
2015-06-13 03:24:07 +10:00
2015-05-11 12:39:39 +10:00
2015-05-06 11:13:42 +10:00
2015-08-06 13:03:07 +10:00
2015-07-25 07:44:25 +10:00
2015-08-01 12:37:52 +10:00
2015-03-30 21:18:49 +11:00
2016-01-04 01:25:52 -05:00
2015-10-23 01:20:01 +11:00
2015-12-28 00:37:07 +01:00
2015-11-12 18:54:26 +11:00
2015-10-08 15:05:37 +02:00
2015-12-01 13:31:26 +11:00
2015-04-06 10:40:12 -03:00
2015-04-06 10:40:12 -03:00
2015-04-07 08:46:48 +10:00