Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object_update.cc
| Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Lines | void BKE_object_batch_cache_dirty_tag(Object *ob) | ||||
| switch (ob->type) { | switch (ob->type) { | ||||
| case OB_MESH: | case OB_MESH: | ||||
| BKE_mesh_batch_cache_dirty_tag((struct Mesh *)ob->data, BKE_MESH_BATCH_DIRTY_ALL); | BKE_mesh_batch_cache_dirty_tag((struct Mesh *)ob->data, BKE_MESH_BATCH_DIRTY_ALL); | ||||
| break; | break; | ||||
| case OB_LATTICE: | case OB_LATTICE: | ||||
| BKE_lattice_batch_cache_dirty_tag((struct Lattice *)ob->data, BKE_LATTICE_BATCH_DIRTY_ALL); | BKE_lattice_batch_cache_dirty_tag((struct Lattice *)ob->data, BKE_LATTICE_BATCH_DIRTY_ALL); | ||||
| break; | break; | ||||
| case OB_CURVES_LEGACY: | case OB_CURVES_LEGACY: | ||||
| case OB_SURF: | |||||
| case OB_FONT: | |||||
| BKE_curve_batch_cache_dirty_tag((struct Curve *)ob->data, BKE_CURVE_BATCH_DIRTY_ALL); | BKE_curve_batch_cache_dirty_tag((struct Curve *)ob->data, BKE_CURVE_BATCH_DIRTY_ALL); | ||||
| break; | break; | ||||
| case OB_MBALL: { | case OB_MBALL: { | ||||
| /* This function is currently called on original objects, so to properly | /* This function is currently called on original objects, so to properly | ||||
| * clear the actual displayed geometry, we have to tag the evaluated mesh. */ | * clear the actual displayed geometry, we have to tag the evaluated mesh. */ | ||||
| Mesh *mesh = BKE_object_get_evaluated_mesh_no_subsurf(ob); | Mesh *mesh = BKE_object_get_evaluated_mesh_no_subsurf(ob); | ||||
| if (mesh) { | if (mesh) { | ||||
| BKE_mesh_batch_cache_dirty_tag(mesh, BKE_MESH_BATCH_DIRTY_ALL); | BKE_mesh_batch_cache_dirty_tag(mesh, BKE_MESH_BATCH_DIRTY_ALL); | ||||
| ▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines | |||||