Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-08-11 15:41:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-11 15:41:04 +0300
commita5f59bffd62568922c5001ffbae6f2337a6a4419 (patch)
tree327812b48d66c19fd94eb089eb779aaeb78ca69b /source/blender/editors/space_view3d/view3d_fly.c
parent63c463ac458fda7a14f8e9f217c5cba7426aa4a8 (diff)
Cleanup: use doxy comments
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_fly.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_fly.c42
1 files changed, 27 insertions, 15 deletions
diff --git a/source/blender/editors/space_view3d/view3d_fly.c b/source/blender/editors/space_view3d/view3d_fly.c
index 01828824e8d..dbbc7f2a32e 100644
--- a/source/blender/editors/space_view3d/view3d_fly.c
+++ b/source/blender/editors/space_view3d/view3d_fly.c
@@ -146,13 +146,13 @@ typedef struct FlyInfo {
struct Depsgraph *depsgraph;
Scene *scene;
- wmTimer *timer; /* needed for redraws */
+ /** Needed for for updating that isn't triggered by input. */
+ wmTimer *timer;
short state;
bool redraw;
bool use_precision;
- /* if the user presses shift they can look about
- * without moving the direction there looking */
+ /** If the user presses shift they can look about without moving the direction there looking. */
bool use_freelook;
/**
@@ -163,31 +163,43 @@ typedef struct FlyInfo {
*/
bool anim_playing;
- int mval[2]; /* latest 2D mouse values */
- int center_mval[2]; /* center mouse values */
- float width, height; /* camera viewport dimensions */
+ /** Latest 2D mouse values. */
+ int mval[2];
+ /** Center mouse values. */
+ int center_mval[2];
+ /** Camera viewport dimensions. */
+ float width, height;
#ifdef WITH_INPUT_NDOF
- wmNDOFMotionData *ndof; /* latest 3D mouse values */
+ /** Latest 3D mouse values. */
+ wmNDOFMotionData *ndof;
#endif
/* fly state state */
- float speed; /* the speed the view is moving per redraw */
- short axis; /* Axis index to move along by default Z to move along the view */
- bool pan_view; /* when true, pan the view instead of rotating */
+ /** The speed the view is moving per redraw. */
+ float speed;
+ /** Axis index to move along by default Z to move along the view. */
+ short axis;
+ /** When true, pan the view instead of rotating. */
+ bool pan_view;
eFlyPanState xlock, zlock;
- float xlock_momentum, zlock_momentum; /* nicer dynamics */
- float grid; /* world scale 1.0 default */
+ /** Nicer dynamics. */
+ float xlock_momentum, zlock_momentum;
+ /** World scale 1.0 default. */
+ float grid;
/* compare between last state */
- double time_lastwheel; /* used to accelerate when using the mousewheel a lot */
- double time_lastdraw; /* time between draws */
+ /** Used to accelerate when using the mousewheel a lot. */
+ double time_lastwheel;
+ /** Time between draws. */
+ double time_lastdraw;
void *draw_handle_pixel;
/* use for some lag */
- float dvec_prev[3]; /* old for some lag */
+ /** Keep the previous value to smooth transitions (use lag). */
+ float dvec_prev[3];
struct View3DCameraControl *v3d_camera_control;