- background job style cleanup.
[blender.git] / source / blender / blenkernel / intern / material.c
index daa665f7183084f21b71d11a578427dfecaf2ef9..36e386aeabe9c5f75b8ffb650a639cc30810cb69 100644 (file)
@@ -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 */