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:
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index daa665f7183..36e386aeabe 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -688,6 +688,7 @@ void assign_material(Object *ob, Material *ma, int act)
if(act<1) act= 1;
/* prevent crashing when using accidentally */
+ BLI_assert(ob->id.lib != NULL);
if(ob->id.lib) return;
/* test arraylens */