Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_draw.c
| Show First 20 Lines • Show All 1,076 Lines • ▼ Show 20 Lines | |||||
| #endif /* WITH_INPUT_NDOF */ | #endif /* WITH_INPUT_NDOF */ | ||||
| /** | /** | ||||
| * Render and camera border | * Render and camera border | ||||
| */ | */ | ||||
| static void view3d_draw_border(const bContext *C, ARegion *ar) | static void view3d_draw_border(const bContext *C, ARegion *ar) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_expect_evaluated_depsgraph(C); | ||||
| RegionView3D *rv3d = ar->regiondata; | RegionView3D *rv3d = ar->regiondata; | ||||
| View3D *v3d = CTX_wm_view3d(C); | View3D *v3d = CTX_wm_view3d(C); | ||||
| if (rv3d->persp == RV3D_CAMOB) { | if (rv3d->persp == RV3D_CAMOB) { | ||||
| drawviewborder(scene, depsgraph, ar, v3d); | drawviewborder(scene, depsgraph, ar, v3d); | ||||
| } | } | ||||
| else if (v3d->flag2 & V3D_RENDER_BORDER) { | else if (v3d->flag2 & V3D_RENDER_BORDER) { | ||||
| drawrenderborder(ar, v3d); | drawrenderborder(ar, v3d); | ||||
| ▲ Show 20 Lines • Show All 354 Lines • ▼ Show 20 Lines | |||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Draw Viewport Contents | /** \name Draw Viewport Contents | ||||
| * \{ */ | * \{ */ | ||||
| static void view3d_draw_view(const bContext *C, ARegion *ar) | static void view3d_draw_view(const bContext *C, ARegion *ar) | ||||
| { | { | ||||
| ED_view3d_draw_setup_view(CTX_wm_window(C), | ED_view3d_draw_setup_view(CTX_wm_window(C), | ||||
| CTX_data_depsgraph(C), | CTX_data_expect_evaluated_depsgraph(C), | ||||
| CTX_data_scene(C), | CTX_data_scene(C), | ||||
| ar, | ar, | ||||
| CTX_wm_view3d(C), | CTX_wm_view3d(C), | ||||
| NULL, | NULL, | ||||
| NULL, | NULL, | ||||
| NULL); | NULL); | ||||
| /* Only 100% compliant on new spec goes below */ | /* Only 100% compliant on new spec goes below */ | ||||
| ▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines | |||||