Revision: 37340
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37340
Author:   ton
Date:     2011-06-09 15:54:44 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
Bugfix #27078

Added notifier to make material preview update when selecting a face
in editmode with a different material than displayed.

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

Modified: trunk/blender/source/blender/editors/mesh/editmesh_mods.c
===================================================================
--- trunk/blender/source/blender/editors/mesh/editmesh_mods.c   2011-06-09 
15:26:05 UTC (rev 37339)
+++ trunk/blender/source/blender/editors/mesh/editmesh_mods.c   2011-06-09 
15:54:44 UTC (rev 37340)
@@ -2339,7 +2339,7 @@
                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->data);

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

Reply via email to