|
Blender V5.0
|
#include "DNA_constraint_types.h"#include "DNA_mesh_types.h"#include "DNA_modifier_types.h"#include "DNA_scene_types.h"#include "BLI_listbase.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BKE_armature.hh"#include "BKE_constraint.h"#include "BKE_curve.hh"#include "BKE_curves.h"#include "BKE_displist.h"#include "BKE_editmesh.hh"#include "BKE_grease_pencil.h"#include "BKE_grease_pencil.hh"#include "BKE_lattice.hh"#include "BKE_layer.hh"#include "BKE_mball.hh"#include "BKE_mesh.hh"#include "BKE_object.hh"#include "BKE_particle.h"#include "BKE_pointcache.h"#include "BKE_pointcloud.hh"#include "BKE_scene.hh"#include "BKE_volume.hh"#include "MEM_guardedalloc.h"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_light_linking.hh"#include "DEG_depsgraph_query.hh"Go to the source code of this file.
| void BKE_object_batch_cache_dirty_tag | ( | Object * | ob | ) |
Definition at line 254 of file object_update.cc.
References BKE_curve_batch_cache_dirty_tag(), BKE_CURVE_BATCH_DIRTY_ALL, BKE_curves_batch_cache_dirty_tag(), BKE_CURVES_BATCH_DIRTY_ALL, BKE_grease_pencil_batch_cache_dirty_tag(), BKE_GREASEPENCIL_BATCH_DIRTY_ALL, BKE_lattice_batch_cache_dirty_tag(), BKE_LATTICE_BATCH_DIRTY_ALL, BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_ALL, BKE_object_get_evaluated_mesh_no_subsurf(), BKE_pointcloud_batch_cache_dirty_tag(), BKE_POINTCLOUD_BATCH_DIRTY_ALL, BKE_volume_batch_cache_dirty_tag(), BKE_VOLUME_BATCH_DIRTY_ALL, Object::data, OB_CURVES, OB_CURVES_LEGACY, OB_FONT, OB_GREASE_PENCIL, OB_LATTICE, OB_MBALL, OB_MESH, OB_POINTCLOUD, OB_SURF, OB_VOLUME, and Object::type.
Referenced by BKE_object_defgroup_new(), BKE_object_defgroup_remove(), BKE_object_eval_uber_data(), and blender::ed::object::object_origin_set_exec().
| void BKE_object_data_select_update | ( | Depsgraph * | depsgraph, |
| ID * | object_data ) |
Definition at line 325 of file object_update.cc.
References BKE_curve_batch_cache_dirty_tag(), BKE_CURVE_BATCH_DIRTY_SELECT, BKE_lattice_batch_cache_dirty_tag(), BKE_LATTICE_BATCH_DIRTY_SELECT, BKE_mesh_batch_cache_dirty_tag(), BKE_MESH_BATCH_DIRTY_SELECT, DEG_debug_print_eval(), depsgraph, GS, ID_CU_LEGACY, ID_LT, ID_ME, and ID::name.
Referenced by BKE_object_select_update(), and blender::deg::DepsgraphNodeBuilder::build_object_data_geometry_datablock().
Definition at line 91 of file object_update.cc.
References BKE_constraints_clear_evalob(), BKE_constraints_make_evalob(), BKE_constraints_solve(), BKE_scene_ctime_get(), CONSTRAINT_OBTYPE_OBJECT, Object::constraints, DEG_debug_print_eval(), depsgraph, Object::id, and ID::name.
Referenced by BKE_object_eval_transform_all(), and blender::ed::object::force_evaluation_if_constraint_disabled().
| void BKE_object_eval_eval_base_flags | ( | Depsgraph * | depsgraph, |
| Scene * | scene, | ||
| const int | view_layer_index, | ||
| Object * | object, | ||
| int | base_index, | ||
| const bool | is_from_set ) |
Definition at line 356 of file object_update.cc.
References BASE_ENABLED_AND_MAYBE_VISIBLE_IN_VIEWPORT, BASE_ENABLED_RENDER, BASE_FROM_SET, Base::base_orig, BASE_SELECTABLE, BASE_SELECTED, BKE_base_eval_flags(), BKE_particle_batch_cache_dirty_tag(), BKE_PARTICLE_BATCH_DIRTY_ALL, BLI_assert, BLI_findlink(), DAG_EVAL_RENDER, DEG_debug_print_eval(), DEG_get_evaluated_view_layer(), DEG_get_mode(), DEG_is_active(), depsgraph, ListBase::first, Base::flag, Object::id, Base::local_collections_bits, Base::local_view_bits, MEM_allocN_len, Object::mode, ID::name, ParticleSystem::next, OB_MODE_PARTICLE_EDIT, Base::object, ViewLayer::object_bases_array, Object::particlesystem, and Scene::view_layers.
| void BKE_object_eval_light_linking | ( | Depsgraph * | depsgraph, |
| Object * | object ) |
Definition at line 417 of file object_update.cc.
References DEG_debug_print_eval(), depsgraph, blender::deg::light_linking::eval_runtime_data(), Object::id, and ID::name.
| void BKE_object_eval_local_transform | ( | Depsgraph * | depsgraph, |
| Object * | ob ) |
Definition at line 51 of file object_update.cc.
References BKE_object_to_mat4(), DEG_debug_print_eval(), depsgraph, Object::id, ID::name, and Object::runtime.
Referenced by BKE_object_eval_transform_all().
| void BKE_object_eval_parent | ( | Depsgraph * | depsgraph, |
| Object * | ob ) |
Definition at line 59 of file object_update.cc.
References BKE_object_get_parent_matrix(), copy_m4_m4(), copy_v3_v3(), DEG_debug_print_eval(), depsgraph, Object::id, mul_m4_m4m4(), ID::name, Object::parent, Object::parentinv, PARSKEL, PARTYPE, Object::partype, and Object::runtime.
Referenced by BKE_object_eval_transform_all().
Definition at line 305 of file object_update.cc.
References BKE_ptcache_object_reset(), DEG_debug_print_eval(), depsgraph, Object::id, ID::name, and PTCACHE_RESET_DEPSGRAPH.
| void BKE_object_eval_reset | ( | Object * | ob_eval | ) |
Restore the object->data to a non-modifier evaluated state.
Some changes done directly in evaluated object require them to be reset before being re-evaluated. For example, we need to call this before BKE_mesh_new_from_object(), in case we removed/added modifiers in the evaluated object.
Definition at line 46 of file object_update.cc.
References BKE_object_free_derived_caches().
Referenced by blender::ed::object::bake(), and blender::ed::object::object_force_modifier_update_for_bind().
| void BKE_object_eval_shading | ( | Depsgraph * | depsgraph, |
| Object * | object ) |
Definition at line 423 of file object_update.cc.
References DEG_debug_print_eval(), DEG_get_update_count(), depsgraph, Object::id, and ID::name.
Definition at line 311 of file object_update.cc.
References BKE_object_eval_constraints(), BKE_object_eval_local_transform(), BKE_object_eval_parent(), BKE_object_eval_transform_final(), BKE_object_eval_uber_transform(), BLI_listbase_is_empty(), Object::constraints, depsgraph, and Object::parent.
Referenced by blender::ed::transform::applyFaceNearest(), blender::ed::transform::applyFaceProject(), and blender::ed::object::ignore_parent_tx().
| void BKE_object_eval_transform_final | ( | Depsgraph * | depsgraph, |
| Object * | ob ) |
Definition at line 111 of file object_update.cc.
References DEG_debug_print_eval(), DEG_get_update_count(), depsgraph, Object::id, invert_m4_m4_safe(), is_negative_m4(), ID::name, OB_NEG_SCALE, Object::runtime, and Object::transflag.
Referenced by BKE_object_eval_transform_all().
Definition at line 295 of file object_update.cc.
References BKE_object_batch_cache_dirty_tag(), BKE_object_handle_data_update(), BLI_assert, DEG_debug_print_eval(), DEG_get_update_count(), depsgraph, Object::id, ID::name, OB_ARMATURE, Object::runtime, and Object::type.
| void BKE_object_eval_uber_transform | ( | Depsgraph * | depsgraph, |
| Object * | object ) |
Definition at line 252 of file object_update.cc.
Referenced by BKE_object_eval_transform_all().
Definition at line 128 of file object_update.cc.
References BKE_curves_data_update(), BKE_displist_make_curveTypes(), BKE_lattice_modifiers_calc(), BKE_mball_data_update(), BKE_object_eval_grease_pencil(), BKE_object_evaluated_geometry_bounds(), BKE_pointcloud_data_update(), BKE_pose_where_is(), BKE_volume_data_update(), BLI_remlink(), CD_MASK_BAREMESH, CD_MASK_MDEFORMVERT, CD_MASK_ORCO, CD_MASK_PROP_ALL, Scene::customdata_mask, CustomData_MeshMasks_update(), DAG_EVAL_RENDER, DEG_debug_print_eval(), DEG_get_mode(), DEG_get_original(), DEG_is_active(), depsgraph, ParticleSettings::draw_as, CustomData_MeshMasks::emask, ListBase::first, ParticleSystem::flag, CustomData_MeshMasks::fmask, Object::id, ParticleSettings::instance_collection, ParticleSettings::instance_object, CustomData_MeshMasks::lmask, blender::bke::mesh_data_update(), Object::mode, ID::name, ParticleSystem::next, OB_ARMATURE, OB_CURVES, OB_CURVES_LEGACY, OB_DUPLIPARTS, OB_FONT, OB_GREASE_PENCIL, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_EDIT, OB_POINTCLOUD, OB_SURF, OB_VOLUME, ParticleSystem::part, PART_DRAW_GR, PART_DRAW_OB, PART_DRAW_REND, particle_system_update(), Object::particlesystem, CustomData_MeshMasks::pmask, psys_check_enabled(), PSYS_DELETE, psys_free(), ParticleSettings::ren_as, Object::runtime, Object::transflag, Object::type, and CustomData_MeshMasks::vmask.
Referenced by blender::ed::object::bake(), BKE_object_eval_uber_data(), and BKE_object_handle_update_ex().
| void BKE_object_select_update | ( | Depsgraph * | depsgraph, |
| Object * | object ) |
Definition at line 343 of file object_update.cc.
References BKE_object_data_select_update(), Object::data, DEG_debug_print_eval(), depsgraph, Object::id, lock, ID::name, OB_MESH, Mesh::runtime, Object::runtime, and Object::type.
| void BKE_object_sync_to_original | ( | Depsgraph * | depsgraph, |
| Object * | object ) |
Definition at line 222 of file object_update.cc.
References Object::base_flag, Object::base_local_view_bits, BLI_assert, BLI_strdup(), Object::constinv, copy_m4_m4(), DEG_get_original(), DEG_is_active(), depsgraph, ListBase::first, Object::flag, MEM_SAFE_FREE, Object::modifiers, ModifierData::next, Object::runtime, STREQ, and Object::transflag.