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')
-rw-r--r--source/blender/blenkernel/intern/material.c2
1 files changed, 1 insertions, 1 deletions
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;
}