diff options
author | Ton Roosendaal <ton@blender.org> | 2011-06-09 19:54:44 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-06-09 19:54:44 +0400 |
commit | 3a51735fbe083016baf2c74ee2efdbbc01e0249c (patch) | |
tree | 0d8c8c7a43bdc9222af543638f554328871ef314 /source/blender/editors/mesh | |
parent | cede08e1e25c3a37b5276c80302bdb7acc27cd78 (diff) |
Bugfix #27078
Added notifier to make material preview update when selecting a face
in editmode with a different material than displayed.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_mods.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/editmesh_mods.c b/source/blender/editors/mesh/editmesh_mods.c index b5da36756b5..741cfd7078c 100644 --- a/source/blender/editors/mesh/editmesh_mods.c +++ b/source/blender/editors/mesh/editmesh_mods.c @@ -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); |