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:
authorCampbell Barton <ideasman42@gmail.com>2009-11-05 17:54:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-05 17:54:02 +0300
commit5481549725fbe50152f6829b50b23d7206d4294b (patch)
tree5a385863732a7db5a491d0328990f75316245f06 /source/blender/editors/mesh/editmesh.c
parent59eaa1ff50e6b6c94a55ccac934cea283eae1659 (diff)
was setting the active material on exit editmode rather then enter
Diffstat (limited to 'source/blender/editors/mesh/editmesh.c')
-rw-r--r--source/blender/editors/mesh/editmesh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh.c b/source/blender/editors/mesh/editmesh.c
index 8b9de0f6348..81d565a9ba4 100644
--- a/source/blender/editors/mesh/editmesh.c
+++ b/source/blender/editors/mesh/editmesh.c
@@ -777,6 +777,9 @@ void make_editMesh(Scene *scene, Object *ob)
return;
}
+ if(ob->actcol > 0)
+ em->mat_nr= ob->actcol-1;
+
/* initialize fastmalloc for editmesh */
init_editmesh_fastmalloc(em, me->totvert, me->totedge, me->totface);
@@ -990,8 +993,6 @@ void load_editMesh(Scene *scene, Object *ob)
CustomData_add_layer(&me->fdata, CD_MFACE, CD_ASSIGN, mface, me->totface);
mesh_update_customdata_pointers(me);
- em->mat_nr= ob->actcol-1;
-
/* the vertices, use ->tmp.l as counter */
eve= em->verts.first;
a= 0;