diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-07-02 11:59:49 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-07-02 12:03:02 +0400 |
commit | 7587e82c288e46ef257e1de12cb0952ad234abff (patch) | |
tree | 14ef63c3e4edbca745bb5b64ee48145e801b5270 | |
parent | b6e0dc2237e9e0ba972b4425dbb91eb158a1c7e8 (diff) |
Fix T40364: Texture images are not properly displayed in the material preview in BI when using SSS
Blender Internal only uses materials with non-zero user counter for SSS and new
mutable libblock copy was keeping users counter at zero.
Now it sets user counter to 1, which is a bit of arguable decision, but which
also kind of makes sense -- meaning callee owns the copied block.
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index c8173ae0513..1f3327b0dc4 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -829,6 +829,7 @@ void *BKE_libblock_copy_nolib(ID *id, const bool do_action) id->newid = idn; idn->flag |= LIB_NEW; + idn->us = 1; BKE_libblock_copy_data(idn, id, do_action); |