diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-07 19:16:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-07 19:16:08 +0400 |
commit | 93b5375ca17a44fbe225f7af135dc0d647d32dd4 (patch) | |
tree | 8532a6a0264c281c003f2499f99e84698667e627 /source/blender/editors/mesh/editmesh.c | |
parent | cf4f00b2fa6dfecc400519a635c41798bf45ca88 (diff) |
Making new faces (fkey, scanfill etc) didnt create faces with the active material.
Keep the editmesh material and active material in sync
Diffstat (limited to 'source/blender/editors/mesh/editmesh.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh.c b/source/blender/editors/mesh/editmesh.c index 980d699dda5..d540151337d 100644 --- a/source/blender/editors/mesh/editmesh.c +++ b/source/blender/editors/mesh/editmesh.c @@ -986,6 +986,8 @@ 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; |