Revision: 45348
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45348
Author:   blendix
Date:     2012-04-02 19:38:26 +0000 (Mon, 02 Apr 2012)
Log Message:
-----------
Further fix for #30769: cycles assigning image to wrong material form the
uv image editor.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/uvedit/uvedit_ops.c

Modified: trunk/blender/source/blender/editors/uvedit/uvedit_ops.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_ops.c    2012-04-02 
16:30:01 UTC (rev 45347)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_ops.c    2012-04-02 
19:38:26 UTC (rev 45348)
@@ -191,7 +191,7 @@
                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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to