Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-10-09 15:42:02 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-10-09 15:43:11 +0300
commit9a670a67d25f54f2f70f1056cfa8823f6817fd22 (patch)
tree07b2d9f003c91871304e70e72125017da320b2bd /source/blender/blenkernel/intern/library.c
parent85944a2d7e73d1ed070b19e50bc6927b47070091 (diff)
Fix for assert when sampling color to non-existent palette
Diffstat (limited to 'source/blender/blenkernel/intern/library.c')
-rw-r--r--source/blender/blenkernel/intern/library.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index a209b2ac1d7..84aa0ed962b 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -1373,6 +1373,9 @@ void BKE_libblock_init_empty(ID *id)
/* Should not be needed - animation from lib pre-2.5 is broken anyway. */
BLI_assert(0);
break;
+ case ID_PAL:
+ BKE_palette_init((Palette *)id);
+ break;
default:
BLI_assert(0); /* Should never reach this point... */
}