[Bf-blender-cvs] [a41a38d] master: Fix part of T41739: Solid 3DView not updating when enabling/disabling nodal material.
Bastien Montagne
noreply at git.blender.org
Tue Sep 16 16:22:46 CEST 2014
Commit: a41a38d11c835d7d1598542900b08177bc10f4c0
Author: Bastien Montagne
Date: Tue Sep 16 16:19:23 2014 +0200
Branches: master
https://developer.blender.org/rBa41a38d11c835d7d1598542900b08177bc10f4c0
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!
===================================================================
M source/blender/makesrna/intern/rna_material.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_material.c b/source/blender/makesrna/intern/rna_material.c
index 2e0ad63..1ef39ec 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,
More information about the Bf-blender-cvs
mailing list