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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-02 23:38:26 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-02 23:38:26 +0400
commit2ff9b5a7f57450ab0fd1d354c2d18fa10486f699 (patch)
tree7e20818c6759033286fea901a15be29ec8b1874a /source/blender/editors/uvedit
parent186d16e325cc16d0a108e1a82fb428792ee64536 (diff)
Further fix for #30769: cycles assigning image to wrong material form the
uv image editor.
Diffstat (limited to 'source/blender/editors/uvedit')
-rw-r--r--source/blender/editors/uvedit/uvedit_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/uvedit/uvedit_ops.c b/source/blender/editors/uvedit/uvedit_ops.c
index 05b3ba6ea07..69ca67930b1 100644
--- a/source/blender/editors/uvedit/uvedit_ops.c
+++ b/source/blender/editors/uvedit/uvedit_ops.c
@@ -191,7 +191,7 @@ void ED_uvedit_assign_image(Main *bmain, Scene *scene, Object *obedit, Image *im
BMFace *efa= BM_active_face_get(em->bm, sloppy);
if (efa)
- ED_object_assign_active_image(bmain, obedit, efa->mat_nr, ima);
+ ED_object_assign_active_image(bmain, obedit, efa->mat_nr+1, ima);
}
else {
/* old shading system, assign image to selected faces */