Revision: 45340
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45340
Author:   blendix
Date:     2012-04-02 11:51:36 +0000 (Mon, 02 Apr 2012)
Log Message:
-----------
Fix #30770: missing node editor redraw when changing active material by clicking
on face in edit mode.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/mesh/editmesh_select.c

Modified: trunk/blender/source/blender/editors/mesh/editmesh_select.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_select.c 2012-04-02 
11:28:26 UTC (rev 45339)
+++ trunk/blender/source/blender/editors/mesh/editmesh_select.c 2012-04-02 
11:51:36 UTC (rev 45340)
@@ -1499,12 +1499,13 @@
                
                EDBM_selectmode_flush(vc.em);
                  
-//             if (EM_texFaceCheck()) {
-
+               /* change active material on object */
                if (efa && efa->mat_nr != vc.obedit->actcol - 1) {
                        vc.obedit->actcol = efa->mat_nr + 1;
                        vc.em->mat_nr = efa->mat_nr;
-//                     BIF_preview_changed(ID_MA);
+
+                       WM_event_add_notifier(C, NC_MATERIAL|ND_SHADING, NULL);
+
                }
 
                WM_event_add_notifier(C, NC_GEOM | ND_SELECT, vc.obedit);

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

Reply via email to