Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_object.h
| Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | struct Object *BKE_object_add_for_data( | ||||
| int type, const char *name, struct ID *data, bool do_id_user) ATTR_RETURNS_NONNULL; | int type, const char *name, struct ID *data, bool do_id_user) ATTR_RETURNS_NONNULL; | ||||
| void *BKE_object_obdata_add_from_type( | void *BKE_object_obdata_add_from_type( | ||||
| struct Main *bmain, | struct Main *bmain, | ||||
| int type, const char *name) | int type, const char *name) | ||||
| ATTR_NONNULL(1); | ATTR_NONNULL(1); | ||||
| void BKE_object_copy_data(struct Main *bmain, struct Object *ob_dst, const struct Object *ob_src, const int flag); | void BKE_object_copy_data(struct Main *bmain, struct Object *ob_dst, const struct Object *ob_src, const int flag); | ||||
| struct Object *BKE_object_copy(struct Main *bmain, const struct Object *ob); | struct Object *BKE_object_copy(struct Main *bmain, const struct Object *ob); | ||||
| void BKE_object_make_local(struct Main *bmain, struct Object *ob, const bool lib_local); | void BKE_object_make_local(struct Main *bmain, struct Object *ob, const bool lib_local); | ||||
mont29: Same remark as for collections regarding naming, in fact this is even more `critical` here… | |||||
| void BKE_object_make_local_ex(struct Main *bmain, struct Object *ob, const bool lib_local, const bool clear_proxy); | void BKE_object_make_local_ex(struct Main *bmain, struct Object *ob, const bool lib_local, const bool clear_proxy); | ||||
| bool BKE_object_is_libdata(const struct Object *ob); | bool BKE_object_is_libdata(const struct Object *ob); | ||||
| bool BKE_object_obdata_is_libdata(const struct Object *ob); | bool BKE_object_obdata_is_libdata(const struct Object *ob); | ||||
| struct Object *BKE_object_duplicate(struct Main *bmain, const struct Object *ob, const int dupflag); | |||||
| void BKE_object_obdata_size_init(struct Object *ob, const float scale); | void BKE_object_obdata_size_init(struct Object *ob, const float scale); | ||||
| void BKE_object_scale_to_mat3(struct Object *ob, float mat[3][3]); | void BKE_object_scale_to_mat3(struct Object *ob, float mat[3][3]); | ||||
| void BKE_object_rot_to_mat3(struct Object *ob, float mat[3][3], bool use_drot); | void BKE_object_rot_to_mat3(struct Object *ob, float mat[3][3], bool use_drot); | ||||
| void BKE_object_mat3_to_rot(struct Object *ob, float mat[3][3], bool use_compat); | void BKE_object_mat3_to_rot(struct Object *ob, float mat[3][3], bool use_compat); | ||||
| void BKE_object_to_mat3(struct Object *ob, float mat[3][3]); | void BKE_object_to_mat3(struct Object *ob, float mat[3][3]); | ||||
| void BKE_object_to_mat4(struct Object *ob, float mat[4][4]); | void BKE_object_to_mat4(struct Object *ob, float mat[4][4]); | ||||
| void BKE_object_apply_mat4(struct Object *ob, float mat[4][4], const bool use_compat, const bool use_parent); | void BKE_object_apply_mat4(struct Object *ob, float mat[4][4], const bool use_compat, const bool use_parent); | ||||
| ▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines | |||||
Same remark as for collections regarding naming, in fact this is even more critical here since your new copy_ex func is not even used by the copy one. So would rather like to see it named BKE_object_duplicate() imho.