fix for own mistake, reported [#25076] Creating new empty crashes Blender

This commit is contained in:
Campbell Barton 2010-12-07 08:52:12 +00:00
parent c5613de2d5
commit 46990b4904

@ -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;
}