At last... this merge should finally do the trick!
[blender.git] / source / blender / makesrna / intern / rna_object.c
index 85e68ec4877dfd968a7fc12eff2b5ccd3638acc5..fd79ac36c57f770ef2ffd78d382690cc8c4785a4 100644 (file)
@@ -409,11 +409,13 @@ static void rna_def_material_slot(BlenderRNA *brna)
        RNA_def_property_flag(prop, PROP_EDITABLE);
        RNA_def_property_pointer_funcs(prop, "rna_MaterialSlot_material_get", "rna_MaterialSlot_material_set", NULL);
        RNA_def_property_ui_text(prop, "Material", "Material datablock used by this material slot.");
+       RNA_def_property_update(prop, NC_OBJECT|ND_SHADING, "rna_Object_update");
 
        prop= RNA_def_property(srna, "link", PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_items(prop, link_items);
        RNA_def_property_enum_funcs(prop, "rna_MaterialSlot_link_get", "rna_MaterialSlot_link_set", NULL);
        RNA_def_property_ui_text(prop, "Link", "Link material to object or the object's data.");
+       RNA_def_property_update(prop, NC_OBJECT|ND_SHADING, "rna_Object_update");
 
        prop= RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
        RNA_def_property_string_funcs(prop, "rna_MaterialSlot_name_get", "rna_MaterialSlot_name_length", NULL);