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
..
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-04-02 17:13:45 +02:00
2015-05-12 16:06:37 +05:00
2015-05-06 11:13:42 +10:00
2015-09-04 12:26:52 +02:00
2013-06-18 18:11:52 +00:00
2015-12-31 20:40:22 +05:00
2015-05-18 13:42:47 +10:00
2015-11-02 21:42:47 +11:00
2015-10-06 17:57:15 +11:00
2015-10-20 14:44:57 +02:00
2013-09-12 03:02:50 +00:00
2015-09-23 22:57:00 +10:00
2015-08-06 13:03:07 +10:00
2015-07-31 14:00:07 +10:00
2015-10-28 02:43:06 +05:00
2015-03-30 21:18:49 +11:00
2015-03-29 03:56:39 +11:00
2015-07-02 16:20:22 +10:00
2015-10-20 14:44:57 +02:00
2015-01-24 17:26:59 +11:00
2015-10-16 21:56:42 +02:00
2015-07-25 07:44:25 +10:00
2015-03-29 03:56:39 +11:00
2015-08-27 12:10:01 +02:00
2015-12-06 19:35:15 +01:00
2015-03-29 03:56:39 +11:00
2015-07-27 16:01:56 +10:00
2015-12-14 00:16:05 +11:00
2015-08-01 12:37:52 +10:00
2015-03-29 03:56:39 +11:00
2015-03-30 21:18:49 +11:00
2015-03-29 03:56:39 +11:00
2015-10-20 14:44:57 +02:00
2015-03-19 14:34:14 +11:00
2016-01-04 01:25:52 -05:00
2015-12-13 21:03:13 +13:00
2015-11-02 21:20:03 +11:00
2015-05-11 16:37:15 +02:00
2015-10-15 16:12:00 +02:00
2015-01-01 23:42:28 +11:00
2015-11-30 00:54:45 +01:00
2015-10-12 20:12:55 +02:00
2015-10-20 14:44:57 +02:00
2015-10-20 14:44:57 +02:00
2015-10-08 20:29:49 +11:00
2016-01-04 14:02:30 +01:00
2015-10-20 14:44:57 +02:00
2015-10-23 01:20:01 +11:00
2015-06-11 19:34:21 +02:00
2015-12-28 00:37:07 +01:00
2015-04-07 13:19:50 +10:00
2015-10-20 14:44:57 +02:00
2015-07-23 15:08:27 +10:00
2015-07-13 18:05:38 +02:00
2015-10-20 14:44:57 +02:00
2015-10-08 15:05:37 +02:00
2015-10-06 19:44:02 +11:00
2015-07-30 14:43:58 +02:00
2013-09-12 03:02:50 +00:00
2015-04-14 18:39:02 +12:00
2015-12-03 13:04:04 +01:00
2015-01-09 19:32:44 +01:00
2015-11-24 12:16:14 +11:00
2015-11-12 18:54:26 +11:00
2015-04-07 11:01:47 +10:00
2015-05-01 19:20:42 +02:00
2015-08-31 22:00:30 +03:00
2016-01-04 12:19:45 +01:00
2015-11-25 19:49:54 -05:00
2015-06-02 20:21:45 +10:00
2015-11-13 15:26:22 +01:00
2015-10-08 15:05:37 +02:00
2015-10-08 15:05:37 +02:00
2015-10-24 01:01:10 +11:00
2015-12-01 13:31:26 +11:00
2015-12-28 12:16:48 +01:00
2015-03-29 03:56:39 +11:00
2013-12-26 17:24:42 +06:00
2015-10-06 19:44:02 +11:00
2015-10-20 14:44:57 +02:00
2015-11-04 21:30:25 +05:00
2015-10-25 17:44:32 +11:00
2015-12-14 17:16:23 +11:00
2015-07-18 22:49:10 +02:00
2015-07-13 18:17:46 +02:00
2014-08-26 20:53:41 +10:00
2015-10-20 14:44:57 +02: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
2016-01-04 19:39:13 +05:00
2014-04-04 12:46:08 +06:00
2014-10-30 23:12:19 +05:00