Cycles: svn merge -r40266:40358 https://svn.blender.org/svnroot/bf-blender/trunk...
[blender-staging.git] / source / blender / makesrna / intern / rna_material.c
index dcaeb523df53cd932f029fdecb776561f052fb31..f102b700bb4c81d37a807ee9b077137a7efb5836 100644 (file)
@@ -277,7 +277,7 @@ static void rna_Material_use_nodes_set(PointerRNA *ptr, int value)
 
        ma->use_nodes= value;
        if(ma->use_nodes && ma->nodetree==NULL)
-               ED_node_shader_default(ma);
+               ED_node_shader_default(&ma->id);
 }
 
 static EnumPropertyItem *rna_Material_texture_coordinates_itemf(bContext *UNUSED(C), PointerRNA *ptr,