Blender V5.3
object.cc File Reference
#include <cmath>
#include <cstdio>
#include <cstring>
#include <optional>
#include "CLG_log.h"
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_camera_types.h"
#include "DNA_collection_types.h"
#include "DNA_constraint_types.h"
#include "DNA_curve_types.h"
#include "DNA_dynamicpaint_types.h"
#include "DNA_effect_types.h"
#include "DNA_fluid_types.h"
#include "DNA_gpencil_legacy_types.h"
#include "DNA_grease_pencil_modifier_types.h"
#include "DNA_grease_pencil_types.h"
#include "DNA_key_types.h"
#include "DNA_lattice_types.h"
#include "DNA_light_types.h"
#include "DNA_lightprobe_types.h"
#include "DNA_material_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meta_types.h"
#include "DNA_movieclip_types.h"
#include "DNA_nla_types.h"
#include "DNA_object_fluidsim_types.h"
#include "DNA_object_types.h"
#include "DNA_pointcloud_types.h"
#include "DNA_rigidbody_types.h"
#include "DNA_scene_types.h"
#include "DNA_shader_fx_types.h"
#include "DNA_view3d_types.h"
#include "BLI_bounds.hh"
#include "BLI_kdtree.hh"
#include "BLI_linklist.hh"
#include "BLI_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_threads.hh"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "BKE_action.hh"
#include "BKE_anim_data.hh"
#include "BKE_anim_path.h"
#include "BKE_anim_visualization.h"
#include "BKE_animsys.hh"
#include "BKE_annotations.h"
#include "BKE_armature.hh"
#include "BKE_asset.hh"
#include "BKE_bpath.hh"
#include "BKE_camera.h"
#include "BKE_collection.hh"
#include "BKE_constraint.h"
#include "BKE_crazyspace.hh"
#include "BKE_curve.hh"
#include "BKE_curves.hh"
#include "BKE_deform.hh"
#include "BKE_displist.h"
#include "BKE_duplilist.hh"
#include "BKE_editmesh.hh"
#include "BKE_editmesh_cache.hh"
#include "BKE_effect.h"
#include "BKE_fcurve.hh"
#include "BKE_geometry_set.hh"
#include "BKE_geometry_set_instances.hh"
#include "BKE_global.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_grease_pencil_modifiers.h"
#include "BKE_idprop.hh"
#include "BKE_idtype.hh"
#include "BKE_image.hh"
#include "BKE_key.hh"
#include "BKE_lattice.hh"
#include "BKE_layer.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_lib_remap.hh"
#include "BKE_library.hh"
#include "BKE_light.h"
#include "BKE_light_linking.h"
#include "BKE_lightprobe.h"
#include "BKE_linestyle.h"
#include "BKE_main.hh"
#include "BKE_material.hh"
#include "BKE_mball.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_wrapper.hh"
#include "BKE_modifier.hh"
#include "BKE_multires.hh"
#include "BKE_node.hh"
#include "BKE_object.hh"
#include "BKE_object_types.hh"
#include "BKE_paint.hh"
#include "BKE_particle.h"
#include "BKE_pointcache.h"
#include "BKE_pointcloud.hh"
#include "BKE_pose_backup.h"
#include "BKE_preview_image.hh"
#include "BKE_report.hh"
#include "BKE_rigidbody.h"
#include "BKE_scene.hh"
#include "BKE_shader_fx.hh"
#include "BKE_softbody.h"
#include "BKE_speaker.hh"
#include "BKE_subdiv_ccg.hh"
#include "BKE_vfont.hh"
#include "BKE_volume.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "DRW_engine.hh"
#include "BLO_read_write.hh"
#include "BLO_readfile.hh"
#include "SEQ_sequencer.hh"
#include "ANIM_action_legacy.hh"
#include "ANIM_animdata.hh"
#include "NOD_geometry_nodes_srna.hh"
#include "RNA_prototypes.hh"

Go to the source code of this file.

Classes

struct  blender::ObTfmBack
struct  blender::ObjectModifierUpdateContext

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::forward_compat

Macros

#define DNA_DEPRECATED_ALLOW
#define VPARENT_THREADING_HACK
#define TFMCPY(_v)
#define TFMCPY3D(_v)
#define TFMCPY4D(_v)
#define TFMCPY(_v)
#define TFMCPY3D(_v)
#define TFMCPY4D(_v)

Functions

static void blender::copy_object_pose (Object *obn, const Object *ob, const int flag)
static void blender::object_init_data (ID *id)
static void blender::object_copy_data (Main *bmain, std::optional< Library * >, ID *id_dst, const ID *id_src, const int flag)
static void blender::object_free_data (ID *id)
static void blender::library_foreach_modifiersForeachIDLink (void *user_data, Object *, ID **id_pointer, const LibraryForeachIDCallbackFlag cb_flag)
static void blender::library_foreach_gpencil_modifiersForeachIDLink (void *user_data, Object *, ID **id_pointer, const LibraryForeachIDCallbackFlag cb_flag)
static void blender::library_foreach_shaderfxForeachIDLink (void *user_data, Object *, ID **id_pointer, const LibraryForeachIDCallbackFlag cb_flag)
static void blender::library_foreach_constraintObjectLooper (bConstraint *, ID **id_pointer, bool is_reference, void *user_data)
static void blender::library_foreach_particlesystemsObjectLooper (ParticleSystem *, ID **id_pointer, void *user_data, const LibraryForeachIDCallbackFlag cb_flag)
static void blender::object_foreach_id (ID *id, LibraryForeachIDData *data)
static void blender::object_foreach_path_pointcache (ListBaseT< PointCache > *ptcache_list, BPathForeachPathData *bpath_data)
static void blender::object_foreach_path_particles (Object *ob, BPathForeachPathData *bpath_data)
static void blender::object_foreach_path (ID *id, BPathForeachPathData *bpath_data)
static void blender::object_foreach_cache (ID *id, IDTypeForeachCacheFunctionCallback function_callback, void *user_data)
static void blender::object_foreach_working_space_color (ID *id, const IDTypeForeachColorFunctionCallback &fn)
static void blender::forward_compat::create_legacy_geometry_nodes_properties (Object &ob)
static void blender::forward_compat::free_legacy_geometry_nodes_properties (Object &ob)
static void blender::object_blend_write (BlendWriter *writer, ID *id, const void *id_address)
static void blender::object_blend_read_data (BlendDataReader *reader, ID *id)
static void blender::object_blend_read_after_liblink (BlendLibReader *reader, ID *id)
PartEff * blender::BKE_object_do_version_give_parteff_245 (Object *ob)
static void blender::object_lib_override_apply_post (ID *id_dst, ID *id_src)
static IDProperty * blender::object_asset_dimensions_property (Object *ob)
static void blender::object_asset_metadata_ensure (void *asset_ptr, AssetMetaData *asset_data)
void blender::BKE_object_workob_clear (Object *workob)
void blender::BKE_object_free_particlesystems (Object *ob)
void blender::BKE_object_free_softbody (Object *ob)
void blender::BKE_object_free_curve_cache (Object *ob)
void blender::BKE_object_free_modifiers (Object *ob, int flag)
void blender::BKE_object_free_shaderfx (Object *ob, int flag)
void blender::BKE_object_modifier_hook_reset (Object *ob, HookModifierData *hmd)
void blender::BKE_object_modifier_gpencil_hook_reset (Object *ob, HookGpencilModifierData *hmd)
void blender::BKE_object_modifier_set_active (Object *ob, ModifierData *md)
ModifierData * blender::BKE_object_active_modifier (const Object *ob)
bool blender::BKE_object_supports_modifiers (const Object *ob)
bool blender::BKE_object_support_modifier_type_check (const Object *ob, int modifier_type)
static bool blender::object_modifier_type_copy_check (ModifierType md_type)
static ParticleSystem * blender::object_copy_modifier_particle_system_ensure (Main *bmain, const Scene *scene, Object *ob_dst, ParticleSystem *psys_src)
ModifierData * blender::BKE_object_copy_modifier (Main *bmain, const Scene *scene, Object *ob_dst, const Object *ob_src, const ModifierData *md)
bool blender::BKE_object_modifier_stack_copy (Object *ob_dst, const Object *ob_src, bool do_copy_all, int flag_subdata)
void blender::BKE_object_link_modifiers (Object *ob_dst, const Object *ob_src)
static void blender::copy_ccg_data (Mesh *mesh_dst, Mesh *mesh_src, const eCustomDataType layer_type)
static void blender::object_update_from_subsurf_ccg (Object *object)
void blender::BKE_object_eval_assign_data (Object *object, ID *data, bool is_owned)
void blender::BKE_object_free_derived_caches (Object *ob)
void blender::BKE_object_free_caches (Object *object)
bool blender::BKE_object_is_in_editmode (const Object *ob)
bool blender::BKE_object_is_in_editmode_vgroup (const Object *ob)
bool blender::BKE_object_data_is_in_editmode (const Object *ob, const ID *id)
char * blender::BKE_object_data_editmode_flush_ptr_get (ID *id)
bool blender::BKE_object_is_in_wpaint_select_vert (const Object *ob)
bool blender::BKE_object_has_mode_data (const Object *ob, eObjectMode object_mode)
bool blender::BKE_object_is_mode_compat (const Object *ob, eObjectMode object_mode)
int blender::BKE_object_visibility (const Object *ob, int dag_eval_mode)
bool blender::BKE_object_exists_check (Main *bmain, const Object *obtest)
static const char * blender::get_obdata_defname (ObjectType type)
static void blender::object_init (Object *ob, const ObjectType ob_type)
void * blender::BKE_object_obdata_add_from_type (Main *bmain, ObjectType type, const char *name) ATTR_NONNULL(1)
int blender::BKE_object_obdata_to_type (const ID *id) ATTR_NONNULL(1)
Object * blender::BKE_object_add_only_object (Main *bmain, ObjectType type, const char *name) ATTR_RETURNS_NONNULL
static Object * blender::object_add_common (Main *bmain, const Scene *scene, ViewLayer *view_layer, ObjectType type, const char *name)
Object * blender::BKE_object_add (Main *bmain, Scene *scene, ViewLayer *view_layer, ObjectType type, const char *name) ATTR_NONNULL(1
Object * blender::BKE_object_add_from (Main *bmain, Scene *scene, ViewLayer *view_layer, ObjectType type, const char *name, Object *ob_src) ATTR_NONNULL(1
Object * blender::BKE_object_add_for_data (Main *bmain, const Scene *scene, ViewLayer *view_layer, ObjectType type, const char *name, ID *data, bool do_id_user) ATTR_RETURNS_NONNULL
void blender::BKE_object_copy_softbody (Object *ob_dst, const Object *ob_src, int flag)
ParticleSystem * blender::BKE_object_copy_particlesystem (ParticleSystem *psys, int flag)
void blender::BKE_object_copy_particlesystems (Object *ob_dst, const Object *ob_src, int flag)
bool blender::BKE_object_pose_context_check (const Object *ob)
Object * blender::BKE_object_pose_armature_get (Object *ob)
Object * blender::BKE_object_pose_armature_get_with_wpaint_check (Object *ob)
Object * blender::BKE_object_pose_armature_get_visible (const Main &bmain, Object *ob, const Scene *scene, ViewLayer *view_layer, View3D *v3d)
Vector< Object * > blender::BKE_object_pose_array_get_ex (const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d, bool unique)
Vector< Object * > blender::BKE_object_pose_array_get_unique (const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d)
Vector< Object * > blender::BKE_object_pose_array_get (const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d)
Vector< Base * > blender::BKE_object_pose_base_array_get_ex (const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d, bool unique)
Vector< Base * > blender::BKE_object_pose_base_array_get_unique (const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d)
Vector< Base * > blender::BKE_object_pose_base_array_get (const Main &bmain, const Scene *scene, ViewLayer *view_layer, View3D *v3d)
void blender::BKE_object_transform_copy (Object *ob_tar, const Object *ob_src)
Object * blender::BKE_object_duplicate (Main *bmain, Object *ob, eDupli_ID_Flags dupflag, uint duplicate_options)
bool blender::BKE_object_is_libdata (const Object *ob)
bool blender::BKE_object_obdata_is_libdata (const Object *ob)
void blender::BKE_object_obdata_size_init (Object *ob, float size)
Object Matrix Get/Set API
void blender::BKE_object_scale_to_mat3 (const Object *ob, float r_mat[3][3])
void blender::BKE_object_rot_to_mat3 (const Object *ob, float r_mat[3][3], bool use_drot)
void blender::BKE_object_mat3_to_rot (Object *ob, float r_mat[3][3], bool use_compat)
float4 blender::BKE_object_rot_to_quat (const Object &ob)
void blender::BKE_object_quat_to_rot (Object &ob, const float4 &quat)
void blender::BKE_object_tfm_protected_backup (const Object *ob, ObjectTfmProtectedChannels *obtfm)
void blender::BKE_object_tfm_protected_restore (Object *ob, const ObjectTfmProtectedChannels *obtfm, short protectflag)
void blender::BKE_object_tfm_copy (Object *object_dst, const Object *object_src)
void blender::BKE_object_to_mat3 (const Object *ob, float r_mat[3][3])
void blender::BKE_object_to_mat4 (const Object *ob, float r_mat[4][4])
void blender::BKE_object_matrix_local_get (Object *ob, float r_mat[4][4])
float4x4 blender::BKE_object_delta_matrix_get (const Object &obj)
static bool blender::ob_parcurve (const Object *ob, Object *par, float r_mat[4][4])
static void blender::ob_parbone (const Object *ob, const Object *par, float r_mat[4][4])
static void blender::give_parvert (const Object *par, int nr, float vec[3], const bool use_evaluated_indices)
static void blender::ob_parvert3 (const Object *ob, const Object *par, float r_mat[4][4])
void blender::BKE_object_get_parent_matrix (const Object *ob, Object *par, float r_parentmat[4][4])
Object Matrix Evaluation API
static void blender::solve_parenting (const Object *ob, Object *par, const bool set_origin, float r_obmat[4][4], float r_originmat[3][3])
static void blender::object_where_is_calc_ex (Depsgraph *depsgraph, Scene *scene, Object *ob, float ctime, RigidBodyWorld *rbw, float r_originmat[3][3])
void blender::BKE_object_where_is_calc_time (Depsgraph *depsgraph, Scene *scene, Object *ob, float ctime)
void blender::BKE_object_where_is_calc_mat4 (const Object *ob, float r_obmat[4][4])
void blender::BKE_object_where_is_calc_ex (Depsgraph *depsgraph, Scene *scene, RigidBodyWorld *rbw, Object *ob, float r_originmat[3][3])
void blender::BKE_object_where_is_calc (Depsgraph *depsgraph, Scene *scene, Object *ob)
float4x4 blender::BKE_object_calc_parent (Depsgraph *depsgraph, Scene *scene, Object *ob)
void blender::BKE_object_apply_mat4_ex (Object *ob, const float mat[4][4], Object *parent, const float parentinv[4][4], bool use_compat)
void blender::BKE_object_apply_mat4 (Object *ob, const float mat[4][4], bool use_compat, bool use_parent)
void blender::BKE_object_apply_parent_inverse (Object *ob)
Object Bounding Box API
std::optional< Bounds< float3 > > blender::BKE_object_boundbox_get (const Object *ob)
std::optional< Bounds< float3 > > blender::BKE_object_boundbox_eval_cached_get (const Object *ob)
std::optional< Bounds< float3 > > blender::BKE_object_evaluated_geometry_bounds (const Object *ob)
Object Dimension Get/Set
Warning
Setting dimensions is prone to feedback loops in evaluation.
static float3 blender::boundbox_to_dimensions (const Object *ob, const std::optional< Bounds< float3 > > bounds)
void blender::BKE_object_dimensions_get (const Object *ob, float r_vec[3])
void blender::BKE_object_dimensions_eval_cached_get (const Object *ob, float r_vec[3])
void blender::BKE_object_dimensions_set_ex (Object *ob, const float value[3], int axis_mask, const float ob_scale_orig[3], const float ob_obmat_orig[4][4])
void blender::BKE_object_dimensions_set (Object *ob, const float value[3], int axis_mask)
void blender::BKE_object_minmax (Object *ob, float3 &r_min, float3 &r_max)
void blender::BKE_object_empty_draw_type_set (Object *ob, int value)
bool blender::BKE_object_empty_image_frame_is_visible_in_view3d (const Object *ob, const RegionView3D *rv3d)
bool blender::BKE_object_empty_image_data_is_visible_in_view3d (const Object *ob, const RegionView3D *rv3d)
bool blender::BKE_object_minmax_empty_drawtype (const Object *ob, float r_min[3], float r_max[3])
bool blender::BKE_object_minmax_dupli (Depsgraph *depsgraph, Object *ob, float3 &r_min, float3 &r_max, bool use_hidden)
void blender::BKE_object_foreach_display_point (Object *ob, const float obmat[4][4], void(*func_cb)(const float[3], void *), void *user_data)
void blender::BKE_scene_foreach_display_point (Depsgraph *depsgraph, void(*func_cb)(const float[3], void *), void *user_data)
Object Transform Channels (Backup/Restore)
void * blender::BKE_object_tfm_backup (Object *ob)
void blender::BKE_object_tfm_restore (Object *ob, void *obtfm_pt)
void blender::BKE_object_tfm_free (void *obtfm_pt)
Protected Transform Channel Assignment
void blender::BKE_object_protected_location_set (Object *ob, const float location[3])
void blender::BKE_object_protected_scale_set (Object *ob, const float scale[3])
void blender::BKE_object_protected_rotation_quaternion_set (Object *ob, const float quat[4])
void blender::BKE_object_protected_rotation_euler_set (Object *ob, const float euler[3])
void blender::BKE_object_protected_rotation_axisangle_set (Object *ob, const float axis[3], float angle)
Object Evaluation/Update API
void blender::BKE_object_handle_update_ex (Depsgraph *depsgraph, Scene *scene, Object *ob, RigidBodyWorld *rbw)
void blender::BKE_object_handle_update (Depsgraph *depsgraph, Scene *scene, Object *ob)
bool blender::BKE_object_use_sculptsession (eObjectMode mode)
void blender::BKE_object_sculpt_data_create (Object *ob)
bool blender::BKE_object_obdata_texspace_get (Object *ob, char **r_texspace_flag, float **r_texspace_location, float **r_texspace_size)
Mesh * blender::BKE_object_get_evaluated_mesh_no_subsurf_unchecked (const Object *object)
Mesh * blender::BKE_object_get_evaluated_mesh_no_subsurf (const Object *object_eval)
Mesh * blender::BKE_object_get_evaluated_mesh_unchecked (const Object *object)
Mesh * blender::BKE_object_get_evaluated_mesh (const Object *object_eval)
const Mesh * blender::BKE_object_get_pre_modified_mesh (const Object *object)
Mesh * blender::BKE_object_get_original_mesh (const Object *object)
const Mesh * blender::BKE_object_get_editmesh_eval_final (const Object *object)
const Mesh * blender::BKE_object_get_editmesh_eval_cage (const Object *object)
const Mesh * blender::BKE_object_get_mesh_deform_eval (const Object *object)
Lattice * blender::BKE_object_get_lattice (const Object *object)
Lattice * blender::BKE_object_get_evaluated_lattice (const Object *object)
Object Point Cache
static int blender::pc_cmp (const void *a, const void *b)
int blender::BKE_object_insert_ptcache (Object *ob)
static int blender::pc_findindex (ListBaseT< LinkData > *listbase, int index)
void blender::BKE_object_delete_ptcache (Object *ob, int index)
Object Data Shape Key Insert
static KeyBlock * blender::insert_meshkey (Main *bmain, Object *ob, const char *name, const bool from_mix)
static KeyBlock * blender::insert_lattkey (Main *bmain, Object *ob, const char *name, const bool from_mix)
static KeyBlock * blender::insert_curvekey (Main *bmain, Object *ob, const char *name, const bool from_mix)
Object Shape Key API
KeyBlock * blender::BKE_object_shapekey_insert (Main *bmain, Object *ob, const char *name, bool from_mix)
bool blender::BKE_object_shapekey_free (Main *bmain, Object *ob)
bool blender::BKE_object_shapekey_remove (Main *bmain, Object *ob, KeyBlock *kb)
Object Query API
bool blender::BKE_object_parent_loop_check (const Object *parent, const Object *ob)
bool blender::BKE_object_flag_test_recursive (const Object *ob, short flag)
bool blender::BKE_object_is_child_recursive (const Object *ob_parent, const Object *ob_child)
int blender::BKE_object_is_modified (Scene *scene, Object *ob)
bool blender::BKE_object_moves_in_time (const Object *object, bool recurse_parent)
static bool blender::object_moves_in_time (const Object *object)
static bool blender::object_deforms_in_time (Object *object)
static bool blender::constructive_modifier_is_deform_modified (Object *ob, ModifierData *md)
static bool blender::modifiers_has_animation_check (const Object *ob)
int blender::BKE_object_is_deform_modified (Scene *scene, Object *ob)
void blender::BKE_object_get_mirror_axes (const Object *ob, bool r_axis[3])
int blender::BKE_object_scenes_users_get (Main *bmain, Object *ob)
MovieClip * blender::BKE_object_movieclip_get (Scene *scene, const Object *ob, bool use_default)
bool blender::BKE_object_supports_material_slots (Object *ob)
Object Runtime
void blender::BKE_object_runtime_reset (Object *object)
void blender::BKE_object_runtime_reset_on_copy (Object *object, int flag)
void blender::BKE_object_runtime_free_data (Object *object)
Object Relationships
static Object * blender::obrel_armature_find (Object *ob)
static bool blender::obrel_list_test (Object *ob)
static void blender::obrel_list_add (LinkNode **links, Object *ob)
LinkNode * blender::BKE_object_relational_superset (const Main &bmain, const Scene *scene, ViewLayer *view_layer, eObjectSet objectSet, eObRelationTypes includeFilter)
LinkNode * blender::BKE_object_groups (Main *bmain, Scene *scene, Object *ob)
void blender::BKE_object_groups_clear (Main *bmain, Scene *scene, Object *object)
Object KD-Tree
KDTree< float3 > * blender::BKE_object_as_kdtree (Object *ob, int *r_tot)
Object Modifier Utilities
static void blender::object_cacheIgnoreClear (Object *ob, const bool state)
static bool blender::object_modifier_recurse_for_update_subframe (const ObjectModifierUpdateContext &ctx, Object *ob, const bool update_mesh, const int parent_recursion_limit)
void blender::BKE_object_modifier_update_subframe_only_callback (Object *ob, bool update_mesh, int parent_recursion_limit, int modifier_type, FunctionRef< void(Object *object, bool update_mesh)> update_or_tag_fn)
void blender::BKE_object_modifier_update_subframe (Depsgraph *depsgraph, Scene *scene, Object *ob, bool update_mesh, int parent_recursion_limit, float frame, int modifier_type)
void blender::BKE_object_update_select_id (Main *bmain)
Object Conversion
Mesh * blender::BKE_object_to_mesh (Depsgraph *depsgraph, Object *object, bool preserve_all_data_layers)
void blender::BKE_object_to_mesh_clear (Object *object)
Curve * blender::BKE_object_to_curve (Object *object, Depsgraph *depsgraph, bool apply_modifiers)
void blender::BKE_object_to_curve_clear (Object *object)
void blender::BKE_object_check_uids_unique_and_report (const Object *object)
SubsurfModifierData * blender::BKE_object_get_last_subsurf_modifier (const Object *ob)
void blender::BKE_object_replace_data_on_shallow_copy (Object *ob, ID *new_data)

Variables

static CLG_LogRef blender::LOG = {"object"}
static Mutex blender::vparent_lock
static AssetTypeInfo blender::AssetType_OB

Macro Definition Documentation

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 10 of file object.cc.

◆ TFMCPY [1/2]

#define TFMCPY ( _v)
Value:
(object_dst->_v = object_src->_v)

◆ TFMCPY [2/2]

#define TFMCPY ( _v)
Value:
(obtfm->_v = ob->_v)

Referenced by blender::BKE_object_tfm_copy(), and blender::BKE_object_tfm_protected_backup().

◆ TFMCPY3D [1/2]

#define TFMCPY3D ( _v)
Value:
copy_v3_v3(object_dst->_v, object_src->_v)
ccl_device_inline void copy_v3_v3(ccl_private float *r, const float3 val)

◆ TFMCPY3D [2/2]

#define TFMCPY3D ( _v)

◆ TFMCPY4D [1/2]

#define TFMCPY4D ( _v)
Value:
copy_v4_v4(object_dst->_v, object_src->_v)
ccl_device_inline void copy_v4_v4(ccl_private float *r, const float4 val)

◆ TFMCPY4D [2/2]

#define TFMCPY4D ( _v)

◆ VPARENT_THREADING_HACK

#define VPARENT_THREADING_HACK

NOTE(@sergey): Vertex parent modifies original #BMesh which is not safe for threading. Ideally such a modification should be handled as a separate DAG update callback for mesh data-block, but for until it is actually supported use simpler solution with a mutex lock.

Definition at line 163 of file object.cc.