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.
This commit is contained in:
parent
b6e0dc2237
commit
7587e82c28
Notes:
blender-bot
2023-02-14 10:35:26 +01:00
Referenced by issue #40364, Texture images are not properly displayed in the material preview in BI when using SSS
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue