Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object_update.c
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| #include "BKE_lattice.h" | #include "BKE_lattice.h" | ||||
| #include "BKE_library.h" | #include "BKE_library.h" | ||||
| #include "BKE_editmesh.h" | #include "BKE_editmesh.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_particle.h" | #include "BKE_particle.h" | ||||
| #include "BKE_pointcache.h" | #include "BKE_pointcache.h" | ||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "BKE_material.h" | #include "BKE_material.h" | ||||
| #include "BKE_mball.h" | |||||
| #include "BKE_mesh.h" | #include "BKE_mesh.h" | ||||
| #include "BKE_image.h" | #include "BKE_image.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #define DEBUG_PRINT if (G.debug & G_DEBUG_DEPSGRAPH) printf | #define DEBUG_PRINT if (G.debug & G_DEBUG_DEPSGRAPH) printf | ||||
| ▲ Show 20 Lines • Show All 248 Lines • ▼ Show 20 Lines | switch (ob->type) { | ||||
| 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: | |||||
| BKE_mball_batch_cache_dirty(ob->data, BKE_MBALL_BATCH_DIRTY_ALL); | |||||
| break; | |||||
| } | } | ||||
| if (DEG_depsgraph_use_copy_on_write()) { | if (DEG_depsgraph_use_copy_on_write()) { | ||||
| if (ob->type == OB_MESH) { | if (ob->type == OB_MESH) { | ||||
| /* Quick hack to convert evaluated derivedMesh to Mesh. */ | /* Quick hack to convert evaluated derivedMesh to Mesh. */ | ||||
| DerivedMesh *dm = ob->derivedFinal; | DerivedMesh *dm = ob->derivedFinal; | ||||
| if (dm != NULL) { | if (dm != NULL) { | ||||
| Mesh *mesh = (Mesh *)ob->data; | Mesh *mesh = (Mesh *)ob->data; | ||||
| ▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines | |||||