fix for own mistake, reported [#25076] Creating new empty crashes Blender
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user