diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-09 09:17:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-09 09:17:07 +0400 |
commit | f5bb4635c6d023775689450c453cb76f917f2ee3 (patch) | |
tree | 882bc9d1cff937f958d7087fa045796a3d7f0c2e /source/blender/editors/mesh/editmesh_utils.c | |
parent | 9a6a791ff0c9b32f66831f5e09d7c283ac309b95 (diff) |
fix [#30852] Wrong Material ID applied for the new faces
Diffstat (limited to 'source/blender/editors/mesh/editmesh_utils.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c index 11f58303215..a8854556fc5 100644 --- a/source/blender/editors/mesh/editmesh_utils.c +++ b/source/blender/editors/mesh/editmesh_utils.c @@ -297,6 +297,8 @@ void EDBM_mesh_make(ToolSettings *ts, Scene *UNUSED(scene), Object *ob) #endif me->edit_btmesh->selectmode = me->edit_btmesh->bm->selectmode = ts->selectmode; + me->edit_btmesh->mat_nr = (ob->actcol > 0) ? ob->actcol - 1 : 0; + me->edit_btmesh->me = me; me->edit_btmesh->ob = ob; } |