From 3d013f7b10b6837ab29eccf9a203477e13d278a2 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 4 Dec 2018 12:30:24 +0100 Subject: Fix for assert failure in material preview All localized datablocks are not supposed to have animation data associated with them. There was an easy way to reproduce assert failure: toggle animation decorator for Viewport Display -> Color. --- source/blender/blenkernel/intern/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/texture.c') diff --git a/source/blender/blenkernel/intern/texture.c b/source/blender/blenkernel/intern/texture.c index 5031b2de462..bd527ed8a44 100644 --- a/source/blender/blenkernel/intern/texture.c +++ b/source/blender/blenkernel/intern/texture.c @@ -476,7 +476,7 @@ Tex *BKE_texture_localize(Tex *tex) Tex *texn; - texn = BKE_libblock_copy_nolib(&tex->id, false); + texn = BKE_libblock_copy_for_localize(&tex->id); /* image texture: BKE_texture_free also doesn't decrease */ -- cgit v1.2.3