Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object_update.c
| Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | bool BKE_object_eval_proxy_copy(Depsgraph *depsgraph, | ||||
| return false; | return false; | ||||
| } | } | ||||
| void BKE_object_eval_uber_transform(Depsgraph *depsgraph, Object *object) | void BKE_object_eval_uber_transform(Depsgraph *depsgraph, Object *object) | ||||
| { | { | ||||
| BKE_object_eval_proxy_copy(depsgraph, object); | BKE_object_eval_proxy_copy(depsgraph, object); | ||||
| } | } | ||||
| void BKE_object_eval_uber_data(Depsgraph *depsgraph, | void BKE_object_batch_cache_dirty(Object *ob) | ||||
| Scene *scene, | |||||
| Object *ob) | |||||
| { | { | ||||
| DEG_debug_print_eval(depsgraph, __func__, ob->id.name, ob); | |||||
| BLI_assert(ob->type != OB_ARMATURE); | |||||
| BKE_object_handle_data_update(depsgraph, scene, ob); | |||||
| switch (ob->type) { | switch (ob->type) { | ||||
| case OB_MESH: | case OB_MESH: | ||||
| BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL); | BKE_mesh_batch_cache_dirty(ob->data, BKE_MESH_BATCH_DIRTY_ALL); | ||||
| break; | break; | ||||
| case OB_LATTICE: | case OB_LATTICE: | ||||
| BKE_lattice_batch_cache_dirty(ob->data, BKE_LATTICE_BATCH_DIRTY_ALL); | BKE_lattice_batch_cache_dirty(ob->data, BKE_LATTICE_BATCH_DIRTY_ALL); | ||||
| break; | break; | ||||
| case OB_CURVE: | case OB_CURVE: | ||||
| case OB_FONT: | case OB_FONT: | ||||
| case OB_SURF: | case OB_SURF: | ||||
| BKE_curve_batch_cache_dirty(ob->data, BKE_CURVE_BATCH_DIRTY_ALL); | BKE_curve_batch_cache_dirty(ob->data, BKE_CURVE_BATCH_DIRTY_ALL); | ||||
| break; | break; | ||||
| case OB_MBALL: | case OB_MBALL: | ||||
| BKE_mball_batch_cache_dirty(ob->data, BKE_MBALL_BATCH_DIRTY_ALL); | BKE_mball_batch_cache_dirty(ob->data, BKE_MBALL_BATCH_DIRTY_ALL); | ||||
| break; | break; | ||||
| case OB_GPENCIL: | case OB_GPENCIL: | ||||
| BKE_gpencil_batch_cache_dirty(ob->data); | BKE_gpencil_batch_cache_dirty(ob->data); | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| void BKE_object_eval_uber_data(Depsgraph *depsgraph, | |||||
| Scene *scene, | |||||
| Object *ob) | |||||
| { | |||||
| DEG_debug_print_eval(depsgraph, __func__, ob->id.name, ob); | |||||
| BLI_assert(ob->type != OB_ARMATURE); | |||||
| BKE_object_handle_data_update(depsgraph, scene, ob); | |||||
| BKE_object_batch_cache_dirty(ob); | |||||
| } | |||||
| void BKE_object_eval_cloth(Depsgraph *depsgraph, | void BKE_object_eval_cloth(Depsgraph *depsgraph, | ||||
| Scene *scene, | Scene *scene, | ||||
| Object *object) | Object *object) | ||||
| { | { | ||||
| DEG_debug_print_eval(depsgraph, __func__, object->id.name, object); | DEG_debug_print_eval(depsgraph, __func__, object->id.name, object); | ||||
| BKE_ptcache_object_reset(scene, object, PTCACHE_RESET_DEPSGRAPH); | BKE_ptcache_object_reset(scene, object, PTCACHE_RESET_DEPSGRAPH); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||