[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37340] trunk/blender/source/blender/ editors/mesh/editmesh_mods.c: Bugfix #27078

Ton Roosendaal ton at blender.org
Thu Jun 9 17:54:46 CEST 2011


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);




More information about the Bf-blender-cvs mailing list