From 7587e82c288e46ef257e1de12cb0952ad234abff Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 2 Jul 2014 13:59:49 +0600 Subject: 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. --- source/blender/blenkernel/intern/library.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel/intern/library.c') 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); -- cgit v1.2.3