Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_utils.c
| Show First 20 Lines • Show All 547 Lines • ▼ Show 20 Lines | if (sa->spacetype == SPACE_VIEW3D) { | ||||
| /* init 3d depth buffers */ | /* init 3d depth buffers */ | ||||
| view3d_operator_needs_opengl(C); | view3d_operator_needs_opengl(C); | ||||
| view3d_region_operator_needs_opengl(win, ar); | view3d_region_operator_needs_opengl(win, ar); | ||||
| ED_view3d_autodist_init(&eval_ctx, graph, ar, v3d, 0); | ED_view3d_autodist_init(&eval_ctx, graph, ar, v3d, 0); | ||||
| /* for camera view set the subrect */ | /* for camera view set the subrect */ | ||||
| if (rv3d->persp == RV3D_CAMOB) { | if (rv3d->persp == RV3D_CAMOB) { | ||||
| ED_view3d_calc_camera_border(scene, ar, v3d, rv3d, &r_gsc->subrect_data, true); /* no shift */ | ED_view3d_calc_camera_border(scene, CTX_data_depsgraph(C), ar, v3d, rv3d, &r_gsc->subrect_data, true); /* no shift */ | ||||
| r_gsc->subrect = &r_gsc->subrect_data; | r_gsc->subrect = &r_gsc->subrect_data; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Convert point to parent space | * Convert point to parent space | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 613 Lines • Show Last 20 Lines | |||||