Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 7,524 Lines • ▼ Show 20 Lines | static void sculpt_flush_update_step(bContext *C, SculptUpdateType update_flags) | ||||
| } | } | ||||
| if (mmd != NULL) { | if (mmd != NULL) { | ||||
| multires_mark_as_modified(depsgraph, ob, MULTIRES_COORDS_MODIFIED); | multires_mark_as_modified(depsgraph, ob, MULTIRES_COORDS_MODIFIED); | ||||
| } | } | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_SHADING); | DEG_id_tag_update(&ob->id, ID_RECALC_SHADING); | ||||
| /* Force dependency graph update to avoid face orientation overlay artifacts (slow). */ | |||||
| if (v3d->overlay.flag & V3D_OVERLAY_FACE_ORIENTATION) { | |||||
| DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | |||||
| } | |||||
| /* Only current viewport matters, slower update for all viewports will | /* Only current viewport matters, slower update for all viewports will | ||||
| * be done in sculpt_flush_update_done. */ | * be done in sculpt_flush_update_done. */ | ||||
| if (!BKE_sculptsession_use_pbvh_draw(ob, v3d)) { | if (!BKE_sculptsession_use_pbvh_draw(ob, v3d)) { | ||||
| /* Slow update with full dependency graph update and all that comes with it. | /* Slow update with full dependency graph update and all that comes with it. | ||||
| * Needed when there are modifiers or full shading in the 3D viewport. */ | * Needed when there are modifiers or full shading in the 3D viewport. */ | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | ||||
| ED_region_tag_redraw(ar); | ED_region_tag_redraw(ar); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,063 Lines • Show Last 20 Lines | |||||