Cleanup: pass const depsgraph for viewport funcitons

This commit is contained in:
Campbell Barton
2024-09-10 17:31:02 +10:00
parent 565f9f6b8a
commit 62dbebc18e
5 changed files with 11 additions and 11 deletions

View File

@@ -745,7 +745,7 @@ bool ED_view3d_clip_range_get(const Depsgraph *depsgraph,
bool use_ortho_factor,
float *r_clip_start,
float *r_clip_end);
bool ED_view3d_viewplane_get(Depsgraph *depsgraph,
bool ED_view3d_viewplane_get(const Depsgraph *depsgraph,
const View3D *v3d,
const RegionView3D *rv3d,
int winx,
@@ -761,7 +761,7 @@ bool ED_view3d_viewplane_get(Depsgraph *depsgraph,
void ED_view3d_polygon_offset(const RegionView3D *rv3d, float dist);
void ED_view3d_calc_camera_border(const Scene *scene,
Depsgraph *depsgraph,
const Depsgraph *depsgraph,
const ARegion *region,
const View3D *v3d,
const RegionView3D *rv3d,
@@ -1062,7 +1062,7 @@ void ED_view3d_quadview_update(ScrArea *area, ARegion *region, bool do_clip);
/**
* \note keep this synced with #ED_view3d_mats_rv3d_backup/#ED_view3d_mats_rv3d_restore
*/
void ED_view3d_update_viewmat(Depsgraph *depsgraph,
void ED_view3d_update_viewmat(const Depsgraph *depsgraph,
const Scene *scene,
View3D *v3d,
ARegion *region,

View File

@@ -91,7 +91,7 @@ using blender::float4;
/** \name General Functions
* \{ */
void ED_view3d_update_viewmat(Depsgraph *depsgraph,
void ED_view3d_update_viewmat(const Depsgraph *depsgraph,
const Scene *scene,
View3D *v3d,
ARegion *region,
@@ -375,7 +375,7 @@ void ED_view3d_draw_setup_view(const wmWindowManager *wm,
* \{ */
static void view3d_camera_border(const Scene *scene,
Depsgraph *depsgraph,
const Depsgraph *depsgraph,
const ARegion *region,
const View3D *v3d,
const RegionView3D *rv3d,
@@ -436,7 +436,7 @@ void ED_view3d_calc_camera_border_size(const Scene *scene,
}
void ED_view3d_calc_camera_border(const Scene *scene,
Depsgraph *depsgraph,
const Depsgraph *depsgraph,
const ARegion *region,
const View3D *v3d,
const RegionView3D *rv3d,

View File

@@ -107,7 +107,7 @@ void VIEW3D_OT_localview_remove_from(wmOperatorType *ot);
/**
* \param rect: optional for picking (can be NULL).
*/
void view3d_winmatrix_set(Depsgraph *depsgraph,
void view3d_winmatrix_set(const Depsgraph *depsgraph,
ARegion *region,
const View3D *v3d,
const rcti *rect);
@@ -123,7 +123,7 @@ void view3d_winmatrix_set(Depsgraph *depsgraph,
*
* \note don't set windows active in here, is used by renderwin too.
*/
void view3d_viewmatrix_set(Depsgraph *depsgraph,
void view3d_viewmatrix_set(const Depsgraph *depsgraph,
const Scene *scene,
const View3D *v3d,
RegionView3D *rv3d,

View File

@@ -163,7 +163,7 @@ bool ED_view3d_clip_range_get(const Depsgraph *depsgraph,
return params.is_ortho;
}
bool ED_view3d_viewplane_get(Depsgraph *depsgraph,
bool ED_view3d_viewplane_get(const Depsgraph *depsgraph,
const View3D *v3d,
const RegionView3D *rv3d,
int winx,

View File

@@ -299,7 +299,7 @@ void VIEW3D_OT_object_as_camera(wmOperatorType *ot)
/** \name Window and View Matrix Calculation
* \{ */
void view3d_winmatrix_set(Depsgraph *depsgraph,
void view3d_winmatrix_set(const Depsgraph *depsgraph,
ARegion *region,
const View3D *v3d,
const rcti *rect)
@@ -376,7 +376,7 @@ static void obmat_to_viewmat(RegionView3D *rv3d, Object *ob)
mat4_normalized_to_quat(rv3d->viewquat, rv3d->viewmat);
}
void view3d_viewmatrix_set(Depsgraph *depsgraph,
void view3d_viewmatrix_set(const Depsgraph *depsgraph,
const Scene *scene,
const View3D *v3d,
RegionView3D *rv3d,