Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_collection.h
| Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | struct Collection *BKE_collection_duplicate(struct Main *bmain, | ||||
| struct Collection *parent, | struct Collection *parent, | ||||
| struct Collection *collection, | struct Collection *collection, | ||||
| uint duplicate_flags, | uint duplicate_flags, | ||||
| uint duplicate_options); | uint duplicate_options); | ||||
| /* Master Collection for Scene */ | /* Master Collection for Scene */ | ||||
| #define BKE_SCENE_COLLECTION_NAME "Scene Collection" | #define BKE_SCENE_COLLECTION_NAME "Scene Collection" | ||||
| struct Collection *BKE_collection_master_add(void); | struct Collection *BKE_collection_master_add(struct Scene *scene); | ||||
| /* Collection Objects */ | /* Collection Objects */ | ||||
| bool BKE_collection_has_object(struct Collection *collection, const struct Object *ob); | bool BKE_collection_has_object(struct Collection *collection, const struct Object *ob); | ||||
| bool BKE_collection_has_object_recursive(struct Collection *collection, struct Object *ob); | bool BKE_collection_has_object_recursive(struct Collection *collection, struct Object *ob); | ||||
| bool BKE_collection_has_object_recursive_instanced(struct Collection *collection, | bool BKE_collection_has_object_recursive_instanced(struct Collection *collection, | ||||
| struct Object *ob); | struct Object *ob); | ||||
| struct Collection *BKE_collection_object_find(struct Main *bmain, | struct Collection *BKE_collection_object_find(struct Main *bmain, | ||||
| ▲ Show 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Rebuild parent relationships from child ones, for all collections in given \a bmain. | * Rebuild parent relationships from child ones, for all collections in given \a bmain. | ||||
| */ | */ | ||||
| void BKE_main_collections_parent_relations_rebuild(struct Main *bmain); | void BKE_main_collections_parent_relations_rebuild(struct Main *bmain); | ||||
| /* .blend file I/O */ | /* .blend file I/O */ | ||||
| void BKE_collection_blend_write_nolib(struct BlendWriter *writer, struct Collection *collection); | void BKE_collection_blend_write_nolib(struct BlendWriter *writer, struct Collection *collection); | ||||
| void BKE_collection_blend_read_data(struct BlendDataReader *reader, struct Collection *collection); | void BKE_collection_blend_read_data(struct BlendDataReader *reader, | ||||
| struct Collection *collection, | |||||
| struct ID *owner_id); | |||||
| void BKE_collection_blend_read_lib(struct BlendLibReader *reader, struct Collection *collection); | void BKE_collection_blend_read_lib(struct BlendLibReader *reader, struct Collection *collection); | ||||
| void BKE_collection_blend_read_expand(struct BlendExpander *expander, | void BKE_collection_blend_read_expand(struct BlendExpander *expander, | ||||
| struct Collection *collection); | struct Collection *collection); | ||||
| void BKE_collection_compat_blend_read_data(struct BlendDataReader *reader, | void BKE_collection_compat_blend_read_data(struct BlendDataReader *reader, | ||||
| struct SceneCollection *sc); | struct SceneCollection *sc); | ||||
| void BKE_collection_compat_blend_read_lib(struct BlendLibReader *reader, | void BKE_collection_compat_blend_read_lib(struct BlendLibReader *reader, | ||||
| struct Library *lib, | struct Library *lib, | ||||
| ▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines | |||||