Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object_update.c
| Show First 20 Lines • Show All 392 Lines • ▼ Show 20 Lines | switch (GS(object_data->name)) { | ||||
| default: | default: | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| void BKE_object_select_update(Depsgraph *depsgraph, Object *object) | void BKE_object_select_update(Depsgraph *depsgraph, Object *object) | ||||
| { | { | ||||
| DEG_debug_print_eval(depsgraph, __func__, object->id.name, object); | DEG_debug_print_eval(depsgraph, __func__, object->id.name, object); | ||||
| if (object->type == OB_MESH && !object->runtime.is_mesh_eval_owned) { | if (object->type == OB_MESH && !object->runtime.is_data_eval_owned) { | ||||
| Mesh *mesh_input = object->runtime.mesh_orig; | Mesh *mesh_input = (Mesh *)object->runtime.data_orig; | ||||
| Mesh_Runtime *mesh_runtime = &mesh_input->runtime; | Mesh_Runtime *mesh_runtime = &mesh_input->runtime; | ||||
| BLI_mutex_lock(mesh_runtime->eval_mutex); | BLI_mutex_lock(mesh_runtime->eval_mutex); | ||||
| BKE_object_data_select_update(depsgraph, object->data); | BKE_object_data_select_update(depsgraph, object->data); | ||||
| BLI_mutex_unlock(mesh_runtime->eval_mutex); | BLI_mutex_unlock(mesh_runtime->eval_mutex); | ||||
| } | } | ||||
| else { | else { | ||||
| BKE_object_data_select_update(depsgraph, object->data); | BKE_object_data_select_update(depsgraph, object->data); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||