diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index 90017ba3d5b..2af7fc3b70a 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -626,7 +626,7 @@ void test_object_materials(ID *id) Object *ob; short *totcol; - if(id || (totcol=give_totcolp_id(id))==NULL) { + if(id==NULL || (totcol=give_totcolp_id(id))==NULL) { return; }