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/blenkernel/intern/material.c')
-rw-r--r--source/blender/blenkernel/intern/material.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c
index d697ef2de4e..ccbc1cc17a1 100644
--- a/source/blender/blenkernel/intern/material.c
+++ b/source/blender/blenkernel/intern/material.c
@@ -858,12 +858,13 @@ void delete_material_index()
short *totcolp;
int a, actcol;
- if(G.obedit) {
+ // if(obedit) {
//XXX error("Unable to perform function in EditMode");
- return;
- }
+ // return;
+ // }
+
ob= ((G.scene->basact)? (G.scene->basact->object) : 0) ;
- if(ob==0 || ob->totcol==0) return;
+ if(ob==NULL || ob->totcol==0) return;
/* take a mesh/curve/mball as starting point, remove 1 index,
* AND with all objects that share the ob->data