Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/intern/draw_cache_impl_mesh.c
| Show First 20 Lines • Show All 1,070 Lines • ▼ Show 20 Lines | #endif | ||||
| return; | return; | ||||
| } | } | ||||
| /* Sanity check. */ | /* Sanity check. */ | ||||
| if ((me->edit_mesh != NULL) && (ob->mode & OB_MODE_EDIT)) { | if ((me->edit_mesh != NULL) && (ob->mode & OB_MODE_EDIT)) { | ||||
| BLI_assert(me->edit_mesh->mesh_eval_final != NULL); | BLI_assert(me->edit_mesh->mesh_eval_final != NULL); | ||||
| } | } | ||||
| const bool is_editmode = | const bool is_editmode = (me->edit_mesh != NULL) && DRW_object_is_in_edit_mode(ob); | ||||
| (me->edit_mesh != NULL) && | |||||
| (/* Simple case, the object is in edit-mode with an edit-mesh. */ | |||||
| (ob->mode & OB_MODE_EDIT) || | |||||
| /* This is needed so linked duplicates show updates while the user edits the mesh. | |||||
| * While this is not essential, it's useful to see the edit-mode changes everywhere. */ | |||||
| (me->edit_mesh->mesh_eval_final != NULL)); | |||||
| DRWBatchFlag batch_requested = cache->batch_requested; | DRWBatchFlag batch_requested = cache->batch_requested; | ||||
| cache->batch_requested = 0; | cache->batch_requested = 0; | ||||
| if (batch_requested & MBC_SURFACE_WEIGHTS) { | if (batch_requested & MBC_SURFACE_WEIGHTS) { | ||||
| /* Check vertex weights. */ | /* Check vertex weights. */ | ||||
| if ((cache->batch.surface_weights != NULL) && (ts != NULL)) { | if ((cache->batch.surface_weights != NULL) && (ts != NULL)) { | ||||
| struct DRW_MeshWeightState wstate; | struct DRW_MeshWeightState wstate; | ||||
| ▲ Show 20 Lines • Show All 393 Lines • Show Last 20 Lines | |||||