Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-02-09 15:18:22 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-02-09 15:24:31 +0300
commitbf4f01779d818be876fde59914597308544c4d3a (patch)
tree6370684a9d2607073412e46ceb7483bdf0bc2322 /source/blender/blenkernel/BKE_object.h
parent1bf8551f00d908609287f01fc65c6800d7dbbdb0 (diff)
BKE_object: add util to count number of scenes using an object.
Issue is, ob->id.us is not relevant anymore here, since several collection might be referencing it inside of a same scene, that is still only one usage from user perspective... Note that for now we are just counting scenes instantiating an object, time will say wether we need more refined/complete check (as a reminder, most [all?] other Object usages are *not* refcounting ones).
Diffstat (limited to 'source/blender/blenkernel/BKE_object.h')
-rw-r--r--source/blender/blenkernel/BKE_object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_object.h b/source/blender/blenkernel/BKE_object.h
index 618ca1a0dad..527d88917c9 100644
--- a/source/blender/blenkernel/BKE_object.h
+++ b/source/blender/blenkernel/BKE_object.h
@@ -301,6 +301,8 @@ bool BKE_object_is_animated(struct Scene *scene, struct Object *ob);
int BKE_object_is_modified(struct Scene *scene, struct Object *ob);
int BKE_object_is_deform_modified(struct Scene *scene, struct Object *ob);
+int BKE_object_scenes_users_get(struct Main *bmain, struct Object *ob);
+
struct MovieClip *BKE_object_movieclip_get(struct Scene *scene, struct Object *ob, bool use_default);
void BKE_object_runtime_reset(struct Object *object);