diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-14 15:29:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-14 15:29:58 +0400 |
commit | 503b7d5b9a385fdcd220df3142857300d912d80c (patch) | |
tree | d25f1c3c59edd0e8c30faf984cc681af9ada9fc8 /source/blender/blenkernel/BKE_material.h | |
parent | 1979720d0324b84e4993557d30ff833f71e688fd (diff) |
add materials.clear() method, matching other python list method.
Diffstat (limited to 'source/blender/blenkernel/BKE_material.h')
-rw-r--r-- | source/blender/blenkernel/BKE_material.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_material.h b/source/blender/blenkernel/BKE_material.h index 5d8406ba76f..f52dc030873 100644 --- a/source/blender/blenkernel/BKE_material.h +++ b/source/blender/blenkernel/BKE_material.h @@ -87,9 +87,9 @@ int object_add_material_slot(struct Object *ob); int object_remove_material_slot(struct Object *ob); /* rna api */ -void material_append_id(struct ID *id, struct Material *ma); -struct Material *material_pop_id(struct ID *id, int index, bool remove_material_slot); /* index is an int because of RNA */ - +void BKE_material_append_id(struct ID *id, struct Material *ma); +struct Material *BKE_material_pop_id(struct ID *id, int index, bool update_data); /* index is an int because of RNA */ +void BKE_material_clear_id(struct ID *id, bool update_data); /* rendering */ void init_render_material(struct Material *, int, float *); |