From 1f2136b329c1c457f8f2a77c26d0fdffc635e7a2 Mon Sep 17 00:00:00 2001 From: Tom Edwards Date: Wed, 15 Jan 2014 16:37:03 +0100 Subject: Python/Depsgraph: bpy.data.*.is_updated now detects add/remove of any datablock. Previously this only worked for some datablocks relevant to rendering, now it can be used to detect if any type of datablock was added or removed (but not yet to detect if it was modified, we need many more depsgraph tags for that). Most of the changes are some function parameter changes, the important parts are the DAG_id_type_tag calls. Reviewed By: sergey, brecht Differential Revision: https://developer.blender.org/D195 --- source/blender/blenkernel/BKE_library.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/blenkernel/BKE_library.h') diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h index cb0ab239d44..0a2ce0d3801 100644 --- a/source/blender/blenkernel/BKE_library.h +++ b/source/blender/blenkernel/BKE_library.h @@ -47,7 +47,7 @@ struct bContext; struct PointerRNA; struct PropertyRNA; -void *BKE_libblock_alloc(struct ListBase *lb, short type, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); +void *BKE_libblock_alloc(struct Main *bmain, short type, const char *name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); void *BKE_libblock_copy_ex(struct Main *bmain, struct ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); void *BKE_libblock_copy(struct ID *id) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(); void BKE_libblock_copy_data(struct ID *id, const struct ID *id_from, const bool do_action); @@ -73,9 +73,9 @@ struct ListBase *which_libbase(struct Main *mainlib, short type); #define MAX_LIBARRAY 41 int set_listbasepointers(struct Main *main, struct ListBase **lb); -void BKE_libblock_free(struct ListBase *lb, void *idv); -void BKE_libblock_free_ex(struct ListBase *lb, void *idv, bool do_id_user); -void BKE_libblock_free_us(struct ListBase *lb, void *idv); +void BKE_libblock_free(struct Main *bmain, void *idv); +void BKE_libblock_free_ex(struct Main *bmain, void *idv, bool do_id_user); +void BKE_libblock_free_us(struct Main *bmain, void *idv); void BKE_libblock_free_data(struct ID *id); -- cgit v1.2.3