diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-22 18:47:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-22 18:50:50 +0300 |
commit | c86395c02d4128a0b48f49bd0aa265bae60ea870 (patch) | |
tree | 2faface964c0ead11d908d8061f486025651e2e1 /source/blender/editors/space_view3d/view3d_intern.h | |
parent | 887829e3d89f1adb01326d15241e2270fe3d71ce (diff) |
View3D: use c99 compound literals for smoothview params
Smooth-view functions took many arguments which were often NULL,
now take struct instead.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_intern.h')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_intern.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/source/blender/editors/space_view3d/view3d_intern.h b/source/blender/editors/space_view3d/view3d_intern.h index 2c6d76240d9..52b14d67350 100644 --- a/source/blender/editors/space_view3d/view3d_intern.h +++ b/source/blender/editors/space_view3d/view3d_intern.h @@ -208,19 +208,20 @@ void VIEW3D_OT_game_start(struct wmOperatorType *ot); bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, const struct BoundBox *bb, float obmat[4][4]); bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const struct BoundBox *bb); +typedef struct V3D_SmoothParams { + struct Object *camera_old, *camera; + const float *ofs, *quat, *dist, *lens; +} V3D_SmoothParams; + void ED_view3d_smooth_view_ex( struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *sa, - struct View3D *v3d, struct ARegion *ar, - struct Object *camera_old, struct Object *camera, - const float *ofs, const float *quat, const float *dist, const float *lens, - const int smooth_viewtx); + struct View3D *v3d, struct ARegion *ar, const int smooth_viewtx, + const V3D_SmoothParams *sview); void ED_view3d_smooth_view( struct bContext *C, - struct View3D *v3d, struct ARegion *ar, - struct Object *camera_old, struct Object *camera, - const float *ofs, const float *quat, const float *dist, const float *lens, - const int smooth_viewtx); + struct View3D *v3d, struct ARegion *ar, const int smooth_viewtx, + const V3D_SmoothParams *sview); void view3d_winmatrix_set(ARegion *ar, const View3D *v3d, const rctf *rect); void view3d_viewmatrix_set(Scene *scene, const View3D *v3d, RegionView3D *rv3d); |