Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_convert.c
| Show First 20 Lines • Show All 1,105 Lines • ▼ Show 20 Lines | static int gp_camera_view_subrect(bContext *C, rctf *subrect) | ||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| if (v3d) { | if (v3d) { | ||||
| RegionView3D *rv3d = ar->regiondata; | RegionView3D *rv3d = ar->regiondata; | ||||
| /* for camera view set the subrect */ | /* for camera view set the subrect */ | ||||
| if (rv3d->persp == RV3D_CAMOB) { | if (rv3d->persp == RV3D_CAMOB) { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ED_view3d_calc_camera_border(scene, ar, v3d, rv3d, subrect, true); /* no shift */ | Depsgraph *depsgraph = CTX_data_depsgraph(C); | ||||
| ED_view3d_calc_camera_border(scene, depsgraph, ar, v3d, rv3d, subrect, true); /* no shift */ | |||||
| return 1; | return 1; | ||||
| } | } | ||||
| } | } | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| /* convert a given grease-pencil layer to a 3d-curve representation (using current view if appropriate) */ | /* convert a given grease-pencil layer to a 3d-curve representation (using current view if appropriate) */ | ||||
| ▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines | |||||