Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_transform.c
| Show First 20 Lines • Show All 1,776 Lines • ▼ Show 20 Lines | if (vc.obact == NULL || !object_is_target_compat(vc.obact)) { | ||||
| return OPERATOR_PASS_THROUGH; | return OPERATOR_PASS_THROUGH; | ||||
| } | } | ||||
| #ifdef USE_RENDER_OVERRIDE | #ifdef USE_RENDER_OVERRIDE | ||||
| int flag2_prev = vc.v3d->flag2; | int flag2_prev = vc.v3d->flag2; | ||||
| vc.v3d->flag2 |= V3D_HIDE_OVERLAYS; | vc.v3d->flag2 |= V3D_HIDE_OVERLAYS; | ||||
| #endif | #endif | ||||
| ED_view3d_autodist_init(vc.depsgraph, vc.region, vc.v3d, 0); | ED_view3d_depth_override(vc.depsgraph, vc.region, vc.v3d, NULL, V3D_DEPTH_NO_GPENCIL, true); | ||||
| if (vc.rv3d->depths != NULL) { | |||||
| vc.rv3d->depths->damaged = true; | |||||
| } | |||||
| ED_view3d_depth_update(vc.region); | |||||
| #ifdef USE_RENDER_OVERRIDE | #ifdef USE_RENDER_OVERRIDE | ||||
| vc.v3d->flag2 = flag2_prev; | vc.v3d->flag2 = flag2_prev; | ||||
| #endif | #endif | ||||
| if (vc.rv3d->depths == NULL) { | if (vc.rv3d->depths == NULL) { | ||||
| BKE_report(op->reports, RPT_WARNING, "Unable to access depth buffer, using view plane"); | BKE_report(op->reports, RPT_WARNING, "Unable to access depth buffer, using view plane"); | ||||
| return OPERATOR_CANCELLED; | return OPERATOR_CANCELLED; | ||||
| ▲ Show 20 Lines • Show All 265 Lines • Show Last 20 Lines | |||||