diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-09-16 18:19:23 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-09-16 18:19:23 +0400 |
commit | a41a38d11c835d7d1598542900b08177bc10f4c0 (patch) | |
tree | 120250b8ea6097abd4bfc2a1e0ab87f425d43391 /source | |
parent | 045b26dbf5ab239eb893884164f4eda3e0f23038 (diff) |
Fix part of T41739: Solid 3DView not updating when enabling/disabling nodal material.
There are other similar update issues with mat nodes and solid 3DView, but need agreement
on proposed patch from other devs in this area first!
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_material.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c index 2e0ad63f48e..1ef39ec4a77 100644 --- a/source/blender/makesrna/intern/rna_material.c +++ b/source/blender/makesrna/intern/rna_material.c @@ -340,7 +340,7 @@ static void rna_Material_use_nodes_update(bContext *C, PointerRNA *ptr) if (ma->use_nodes && ma->nodetree == NULL) ED_node_shader_default(C, &ma->id); - rna_Material_update(CTX_data_main(C), CTX_data_scene(C), ptr); + rna_Material_draw_update(CTX_data_main(C), CTX_data_scene(C), ptr); } static EnumPropertyItem *rna_Material_texture_coordinates_itemf(bContext *UNUSED(C), PointerRNA *ptr, |