diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-10-08 13:22:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-10-08 13:22:39 +0400 |
commit | 8f154364f28d53c58b9a0022f8c36ab787477492 (patch) | |
tree | cb229f5ad2a28db173c8f11bdefd304d2d09201e /source/blender/editors/mesh | |
parent | 5a7db36b1d6a17d714ad0056d02095feab371e80 (diff) |
separate material lost all materials for the new mesh
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh.c b/source/blender/editors/mesh/editmesh.c index d540151337d..1e3105f5c97 100644 --- a/source/blender/editors/mesh/editmesh.c +++ b/source/blender/editors/mesh/editmesh.c @@ -1343,6 +1343,7 @@ static int mesh_separate_selected(Scene *scene, Base *editbase) /* 2 */ basenew->object->data= menew= add_mesh(me->id.name); /* empty */ + assign_matarar(basenew->object, give_matarar(obedit), *give_totcolp(obedit)); /* new in 2.5 */ me->id.us--; make_editMesh(scene, basenew->object); emnew= menew->edit_mesh; |