Added notifier to make material preview update when selecting a face
in editmode with a different material than displayed.
This commit is contained in:
Ton Roosendaal
2011-06-09 15:54:44 +00:00
parent cede08e1e2
commit 3a51735fbe

View File

@@ -2339,7 +2339,7 @@ int mouse_mesh(bContext *C, const int mval[2], short extend)
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);