Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_object.h
| Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Return which parts of the object are visible, as evaluated by depsgraph. | * Return which parts of the object are visible, as evaluated by depsgraph. | ||||
| */ | */ | ||||
| int BKE_object_visibility(const struct Object *ob, int dag_eval_mode); | int BKE_object_visibility(const struct Object *ob, int dag_eval_mode); | ||||
| /** | /** | ||||
| * More general add: creates minimum required data, but without vertices etc. | * More general add: creates minimum required data, but without vertices etc. | ||||
| * | |||||
| * \param bmain: The main to add the object to. May be null for #LIB_ID_CREATE_NO_MAIN behavior. | |||||
| */ | */ | ||||
| struct Object *BKE_object_add_only_object(struct Main *bmain, int type, const char *name) | struct Object *BKE_object_add_only_object(struct Main *bmain, | ||||
| ATTR_NONNULL(1) ATTR_RETURNS_NONNULL; | int type, | ||||
| const char *name) ATTR_RETURNS_NONNULL; | |||||
| /** | /** | ||||
| * General add: to scene, with layer from area and default name. | * General add: to scene, with layer from area and default name. | ||||
| * | * | ||||
| * Object is added to the active #Collection. | * Object is added to the active #Collection. | ||||
| * If there is no linked collection to the active #ViewLayer we create a new one. | * If there is no linked collection to the active #ViewLayer we create a new one. | ||||
| * | * | ||||
| * \note Creates minimum required data, but without vertices etc. | * \note Creates minimum required data, but without vertices etc. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 526 Lines • Show Last 20 Lines | |||||