Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editface.c
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | void paintface_flush_flags(struct bContext *C, Object *ob, short flag) | ||||
| /* note, call #BKE_mesh_flush_hidden_from_verts_ex first when changing hidden flags */ | /* note, call #BKE_mesh_flush_hidden_from_verts_ex first when changing hidden flags */ | ||||
| /* we could call this directly in all areas that change selection, | /* we could call this directly in all areas that change selection, | ||||
| * since this could become slow for realtime updates (circle-select for eg) */ | * since this could become slow for realtime updates (circle-select for eg) */ | ||||
| if (flag & SELECT) { | if (flag & SELECT) { | ||||
| BKE_mesh_flush_select_from_polys(me); | BKE_mesh_flush_select_from_polys(me); | ||||
| } | } | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob); | Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob); | ||||
| if (ob_eval == NULL) { | if (ob_eval == NULL) { | ||||
| return; | return; | ||||
| } | } | ||||
| Mesh *me_orig = ob_eval->runtime.mesh_orig; | Mesh *me_orig = ob_eval->runtime.mesh_orig; | ||||
| Mesh *me_eval = ob_eval->runtime.mesh_eval; | Mesh *me_eval = ob_eval->runtime.mesh_eval; | ||||
| ▲ Show 20 Lines • Show All 514 Lines • Show Last 20 Lines | |||||