76 copy_m4_m4(locmat, ob->object_to_world().ptr());
147 for (; md; md = md->
next) {
166 if (
object->instance_collection !=
nullptr) {
167 Collection &collection = *
object->instance_collection;
168 auto instances = std::make_unique<bke::Instances>(1);
169 instances->reference_handles_for_write().first() = instances->add_reference(collection);
176 object->runtime->geometry_set_eval =
new bke::GeometrySet(std::move(geometry_set));
296 object_orig->
base_flag =
object->base_flag;
303 psys_eval && psys_orig;
304 psys_eval = psys_eval->next, psys_orig = psys_orig->next)
313 object_orig->
transflag =
object->transflag;
314 object_orig->
flag =
object->flag;
318 md !=
nullptr && md_orig !=
nullptr;
319 md = md->next, md_orig = md_orig->next)
321 BLI_assert(md->type == md_orig->type &&
STREQ(md->name, md_orig->name));
322 MEM_SAFE_DELETE(md_orig->error);
323 if (md->error !=
nullptr) {
393 if (
object->parent !=
nullptr) {
396 if (!
object->constraints.is_empty()) {
406 switch (
GS(object_data->
name)) {
426 Mesh *mesh_input = id_cast<Mesh *>(
object->runtime->data_orig);
437 const int view_layer_index,
440 const bool is_from_set)
448 Base *base = view_layer->object_bases_array()[base_index];
468 object->base_flag = base->
flag;
Low-level operations for curves that cannot be defined in the C++ header yet.
display list (or rather multi purpose list) stuff.
Low-level operations for grease pencil that cannot be defined in the C++ header yet.
Low-level operations for grease pencil.
General operations, lookup, etc. for blender objects.
#define PTCACHE_RESET_DEPSGRAPH
General operations for point clouds.
Read Blender memory allocation and freeing.
#define CD_MASK_MDEFORMVERT
void mesh_data_update(Depsgraph &depsgraph, const Scene &scene, Object &ob, const CustomData_MeshMasks &dataMask)
void eval_runtime_data(const Depsgraph *depsgraph, Object &object_eval)
void CustomData_MeshMasks_update(CustomData_MeshMasks *mask_dst, const CustomData_MeshMasks *mask_src)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
@ BKE_POINTCLOUD_BATCH_DIRTY_ALL
void BKE_object_eval_reset(Object *ob_eval)
void BKE_object_eval_shading(Depsgraph *depsgraph, Object *object)
const CustomData_MeshMasks CD_MASK_BAREMESH
void BKE_mball_data_update(Depsgraph *depsgraph, Scene *scene, Object *ob)
void BKE_volume_batch_cache_dirty_tag(Volume *volume, int mode)
void BKE_object_eval_eval_base_flags(Depsgraph *depsgraph, Scene *scene, int view_layer_index, Object *object, int base_index, bool is_from_set)
static void empty_object_apply_modifiers(Depsgraph *depsgraph, Scene *scene, Object *object, bke::GeometrySet &geometry_set)
void BKE_particle_batch_cache_dirty_tag(struct ParticleSystem *psys, int mode)
void BKE_object_eval_grease_pencil(Depsgraph *depsgraph, Scene *scene, Object *object)
static void empty_object_update(Depsgraph *depsgraph, Scene *scene, Object *object)
void BKE_object_eval_uber_data(Depsgraph *depsgraph, Scene *scene, Object *ob)
int BKE_ptcache_object_reset(struct Scene *scene, struct Object *ob, int mode)
MINLINE void copy_v3_v3(float r[3], const float a[3])
@ BKE_CURVE_BATCH_DIRTY_SELECT
@ BKE_CURVE_BATCH_DIRTY_ALL
bool DEG_is_active(const Depsgraph *depsgraph)
void BKE_pointcloud_batch_cache_dirty_tag(PointCloud *pointcloud, int mode)
void BKE_constraints_solve(struct Depsgraph *depsgraph, ListBaseT< bConstraint > *conlist, struct bConstraintOb *cob, float ctime)
void BKE_object_eval_transform_final(Depsgraph *depsgraph, Object *ob)
void BKE_object_get_parent_matrix(const Object *ob, Object *par, float r_parentmat[4][4])
@ BKE_LATTICE_BATCH_DIRTY_ALL
@ BKE_LATTICE_BATCH_DIRTY_SELECT
@ BASE_ENABLED_AND_MAYBE_VISIBLE_IN_VIEWPORT
uint64_t DEG_get_update_count(const Depsgraph *depsgraph)
struct bConstraintOb * BKE_constraints_make_evalob(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, void *subdata, short datatype)
void BKE_volume_data_update(Depsgraph *depsgraph, Scene *scene, Object *object)
void BKE_object_eval_ptcache_reset(Depsgraph *depsgraph, Scene *scene, Object *object)
void DEG_debug_print_eval(Depsgraph *depsgraph, const char *function_name, const char *object_name, const void *object_address)
bool is_negative_m4(const float mat[4][4])
void mul_m4_m4m4(float R[4][4], const float A[4][4], const float B[4][4])
void BKE_curve_batch_cache_dirty_tag(Curve *cu, int mode)
void BKE_object_select_update(Depsgraph *depsgraph, Object *object)
void BKE_pose_where_is(Depsgraph *depsgraph, Scene *scene, Object *ob)
void BKE_object_data_select_update(Depsgraph *depsgraph, ID *object_data)
void BKE_object_eval_light_linking(Depsgraph *depsgraph, Object *object)
void BKE_object_batch_cache_dirty_tag(Object *ob)
void BKE_object_eval_local_transform(Depsgraph *depsgraph, Object *ob)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BKE_grease_pencil_batch_cache_dirty_tag(GreasePencil *grease_pencil, int mode)
void BKE_object_handle_data_update(Depsgraph *depsgraph, Scene *scene, Object *ob)
void BKE_object_free_derived_caches(Object *ob)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_object_to_mat4(const Object *ob, float r_mat[4][4])
void BKE_lattice_modifiers_calc(Depsgraph *depsgraph, Scene *scene, Object *ob)
void BKE_mesh_batch_cache_dirty_tag(Mesh *mesh, eMeshBatchDirtyMode mode)
void psys_free(struct Object *ob, struct ParticleSystem *psys)
void BKE_curves_data_update(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *object)
ModifierData * BKE_modifiers_get_virtual_modifierlist(const Object *ob, VirtualModifierData *data)
@ BKE_GREASEPENCIL_BATCH_DIRTY_ALL
void BKE_object_eval_constraints(Depsgraph *depsgraph, Scene *scene, Object *ob)
ViewLayer * DEG_get_evaluated_view_layer(const Depsgraph *graph)
void BKE_modifiers_clear_errors(Object *ob)
eEvaluationMode DEG_get_mode(const Depsgraph *graph)
bool psys_check_enabled(struct Object *ob, struct ParticleSystem *psys, bool use_render_params)
void BKE_object_eval_uber_transform(Depsgraph *depsgraph, Object *object)
void invert_m4_m4_safe(float inverse[4][4], const float mat[4][4])
void particle_system_update(struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, struct ParticleSystem *psys, bool use_render_params)
std::optional< Bounds< float3 > > BKE_object_evaluated_geometry_bounds(const Object *ob)
T * DEG_get_original(T *id)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
float BKE_scene_ctime_get(const Scene *scene)
void BKE_constraints_clear_evalob(struct bConstraintOb *cob)
void BKE_base_eval_flags(Base *base)
void BKE_lattice_batch_cache_dirty_tag(Lattice *lt, int mode)
void BKE_object_eval_parent(Depsgraph *depsgraph, Object *ob)
ID_Type GS(const char *name)
@ CONSTRAINT_OBTYPE_OBJECT
@ BKE_VOLUME_BATCH_DIRTY_ALL
void copy_m4_m4(float m1[4][4], const float m2[4][4])
void BKE_displist_make_curveTypes(struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, bool for_render)
void BKE_object_sync_to_original(Depsgraph *depsgraph, Object *object)
@ BKE_MESH_BATCH_DIRTY_ALL
@ BKE_MESH_BATCH_DIRTY_SELECT
void BKE_pointcloud_data_update(Depsgraph *depsgraph, Scene *scene, Object *object)
void BKE_curves_batch_cache_dirty_tag(struct Curves *curves, int mode)
bool BKE_modifier_is_enabled(const Scene *scene, ModifierData *md, int required_mode)
Mesh * BKE_object_get_evaluated_mesh_no_subsurf(const Object *object_eval)
const ModifierTypeInfo * BKE_modifier_get_info(ModifierType type)
@ BKE_CURVES_BATCH_DIRTY_ALL
void BKE_object_eval_transform_all(Depsgraph *depsgraph, Scene *scene, Object *object)
@ BKE_PARTICLE_BATCH_DIRTY_ALL
unsigned short local_collections_bits
unsigned short local_view_bits
const c_style_mat & ptr() const
static MatBase identity()
bke::MeshRuntime * runtime
struct ModifierData * next
void(*) modify_geometry_set(ModifierData *md, const ModifierEvalContext *ctx, bke::GeometrySet *geometry_set)
ListBaseT< ModifierData > modifiers
bke::ObjectRuntime * runtime
ListBaseT< struct ParticleSystem > particlesystem
ListBaseT< bConstraint > constraints
unsigned short base_local_view_bits
eObject_TransFlag transflag
struct Object * instance_object
struct Collection * instance_collection
struct ParticleSystem * next
eParticleSystem_Flag flag
ListBaseT< ViewLayer > view_layers
struct CustomData_MeshMasks customdata_mask
static GeometrySet from_instances(std::unique_ptr< Instances > instances)
Vector< GeometryComponent::Type > gather_component_types(bool include_instances, bool ignore_empty) const
uint64_t last_update_geometry
float3 parent_display_origin
uint16_t contained_geometry_types
uint64_t last_update_transform
std::optional< Bounds< float3 > > bounds_eval
GeometrySet * geometry_set_eval