Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object_update.c
| Show First 20 Lines • Show All 382 Lines • ▼ Show 20 Lines | void BKE_object_data_batch_cache_dirty_tag(ID *object_data) | ||||
| } | } | ||||
| } | } | ||||
| void BKE_object_batch_cache_dirty_tag(Object *ob) | void BKE_object_batch_cache_dirty_tag(Object *ob) | ||||
| { | { | ||||
| BKE_object_data_batch_cache_dirty_tag(ob->data); | BKE_object_data_batch_cache_dirty_tag(ob->data); | ||||
| } | } | ||||
| void BKE_object_data_eval_batch_cache_dirty_tag(Depsgraph *depsgraph, ID *object_data) | |||||
| { | |||||
| DEG_debug_print_eval(depsgraph, __func__, object_data->name, object_data); | |||||
| BKE_object_data_batch_cache_dirty_tag(object_data); | |||||
| } | |||||
| void BKE_object_data_eval_batch_cache_deform_tag(Depsgraph *depsgraph, ID *object_data) | |||||
| { | |||||
| DEG_debug_print_eval(depsgraph, __func__, object_data->name, object_data); | |||||
| switch (GS(object_data->name)) { | |||||
| case ID_ME: | |||||
| BKE_mesh_batch_cache_dirty_tag((Mesh *)object_data, BKE_MESH_BATCH_DIRTY_DEFORM); | |||||
| break; | |||||
| default: | |||||
| /* Only mesh is currently supported. Fallback to dirty all for other datablocks types. */ | |||||
| BKE_object_data_batch_cache_dirty_tag(object_data); | |||||
| break; | |||||
| } | |||||
| } | |||||
| void BKE_object_eval_uber_data(Depsgraph *depsgraph, Scene *scene, Object *ob) | void BKE_object_eval_uber_data(Depsgraph *depsgraph, Scene *scene, Object *ob) | ||||
| { | { | ||||
| DEG_debug_print_eval(depsgraph, __func__, ob->id.name, ob); | DEG_debug_print_eval(depsgraph, __func__, ob->id.name, ob); | ||||
| BLI_assert(ob->type != OB_ARMATURE); | BLI_assert(ob->type != OB_ARMATURE); | ||||
| BKE_object_handle_data_update(depsgraph, scene, ob); | BKE_object_handle_data_update(depsgraph, scene, ob); | ||||
| BKE_object_batch_cache_dirty_tag(ob); | |||||
| } | } | ||||
| void BKE_object_eval_ptcache_reset(Depsgraph *depsgraph, Scene *scene, Object *object) | void BKE_object_eval_ptcache_reset(Depsgraph *depsgraph, Scene *scene, 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 104 Lines • Show Last 20 Lines | |||||