Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_utils.c
| Show First 20 Lines • Show All 364 Lines • ▼ Show 20 Lines | void EDBM_mesh_load_ex(Main *bmain, Object *ob, bool free_data) | ||||
| * Do it for all objects which shares the same mesh datablock, since their | * Do it for all objects which shares the same mesh datablock, since their | ||||
| * derived meshes might also be referencing data which was just freed, | * derived meshes might also be referencing data which was just freed, | ||||
| * | * | ||||
| * Annoying enough, but currently seems most efficient way to avoid access | * Annoying enough, but currently seems most efficient way to avoid access | ||||
| * of freed data on scene update, especially in cases when there are dependency | * of freed data on scene update, especially in cases when there are dependency | ||||
| * cycles. | * cycles. | ||||
| */ | */ | ||||
| #if 0 | #if 0 | ||||
| for (Object *other_object = bmain->objects.first; other_object != NULL; | for (Object *other_object = bmain->objects.first; other_object != NULL; other_object = other_object->id.next) { | ||||
| other_object = other_object->id.next) { | |||||
| if (other_object->data == ob->data) { | if (other_object->data == ob->data) { | ||||
| BKE_object_free_derived_caches(other_object); | BKE_object_free_derived_caches(other_object); | ||||
| } | } | ||||
| } | } | ||||
| #endif | #endif | ||||
| } | } | ||||
| void EDBM_mesh_clear(BMEditMesh *em) | void EDBM_mesh_clear(BMEditMesh *em) | ||||
| ▲ Show 20 Lines • Show All 1,259 Lines • Show Last 20 Lines | |||||