Go to file
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
build_files Next step of fix for gtests (but still not working...) 2016-01-04 19:29:42 +01:00
doc Remove SCons building system 2016-01-04 14:20:48 +05:00
extern GTest: Fix some strict compiler warnings 2016-01-04 23:54:02 +05:00
intern Fix wrong linking flags for Libmv tests 2016-01-04 23:32:57 +05:00
release Remove unused datatoc script 2016-01-04 21:30:01 +11:00
source ID: Sanitize handling of 'USER_ONE' (ensure_user) case. 2016-01-04 20:17:23 +01:00
tests Correct include directories for GTests 2016-01-04 22:16:14 +05:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Git ignore BUILD_NOTES.txt from install_deps.sh. 2015-11-23 20:17:02 +01:00
.gitmodules Remove SCons building system 2016-01-04 14:20:48 +05:00
CMakeLists.txt Move Ceres to extern/ 2016-01-04 19:39:13 +05:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Minor edits to sync make.bat & makefile 2016-01-04 20:42:00 +11:00
make.bat Minor edits to sync make.bat & makefile 2016-01-04 20:42:00 +11:00