diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/BKE_collection.h | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/collection.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_collection.h b/source/blender/blenkernel/BKE_collection.h index d0fca5e3796..4fa285a4e85 100644 --- a/source/blender/blenkernel/BKE_collection.h +++ b/source/blender/blenkernel/BKE_collection.h @@ -88,7 +88,7 @@ struct Collection *BKE_collection_object_find(struct Main *bmain, struct Scene *scene, struct Collection *collection, struct Object *ob); -bool BKE_collection_is_empty(struct Collection *collection); +bool BKE_collection_is_empty(const struct Collection *collection); bool BKE_collection_object_add(struct Main *bmain, struct Collection *collection, diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c index ac23f9012a7..0c09744c170 100644 --- a/source/blender/blenkernel/intern/collection.c +++ b/source/blender/blenkernel/intern/collection.c @@ -1007,7 +1007,7 @@ Collection *BKE_collection_object_find(Main *bmain, return NULL; } -bool BKE_collection_is_empty(Collection *collection) +bool BKE_collection_is_empty(const Collection *collection) { return BLI_listbase_is_empty(&collection->gobject) && BLI_listbase_is_empty(&collection->children); |