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/makesrna/intern/rna_object.c')
-rw-r--r--source/blender/makesrna/intern/rna_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c
index 99ce6f0bea8..b91e5952c8f 100644
--- a/source/blender/makesrna/intern/rna_object.c
+++ b/source/blender/makesrna/intern/rna_object.c
@@ -416,7 +416,7 @@ static void rna_Object_active_material_index_set(PointerRNA *ptr, int value)
Object *ob= (Object*)ptr->id.data;
ob->actcol= value+1;
- if(ob->mode==OB_MODE_EDIT && ob->type==OB_MESH) {
+ if((ob->mode & OB_MODE_EDIT) && ob->type==OB_MESH) {
Mesh *me= ob->data;
if(me->edit_mesh)