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-10-08 13:22:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-10-08 13:22:39 +0400
commit8f154364f28d53c58b9a0022f8c36ab787477492 (patch)
treecb229f5ad2a28db173c8f11bdefd304d2d09201e /source/blender/editors/mesh/editmesh.c
parent5a7db36b1d6a17d714ad0056d02095feab371e80 (diff)
separate material lost all materials for the new mesh
Diffstat (limited to 'source/blender/editors/mesh/editmesh.c')
-rw-r--r--source/blender/editors/mesh/editmesh.c1
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;