From f91b21f85bdc10c3ad31e9b3cacbd912bc6517c2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 14 Jan 2019 16:30:43 +1100 Subject: Cleanup: move comments above definitions For clang-format not to wrap definitions. --- source/blender/editors/space_view3d/view3d_fly.c | 6 ++++-- source/blender/editors/space_view3d/view3d_walk.c | 9 ++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_view3d') diff --git a/source/blender/editors/space_view3d/view3d_fly.c b/source/blender/editors/space_view3d/view3d_fly.c index de5d5d29e52..b27de9d70c2 100644 --- a/source/blender/editors/space_view3d/view3d_fly.c +++ b/source/blender/editors/space_view3d/view3d_fly.c @@ -28,7 +28,8 @@ #ifdef WITH_INPUT_NDOF //# define NDOF_FLY_DEBUG -//# define NDOF_FLY_DRAW_TOOMUCH /* is this needed for ndof? - commented so redraw doesn't thrash - campbell */ +/* is this needed for ndof? - commented so redraw doesn't thrash - campbell */ +//# define NDOF_FLY_DRAW_TOOMUCH #endif /* WITH_INPUT_NDOF */ #include "DNA_object_types.h" @@ -62,7 +63,8 @@ #include "view3d_intern.h" /* own include */ -/* NOTE: these defines are saved in keymap files, do not change values but just add new ones */ +/* NOTE: these defines are saved in keymap files, + * do not change values but just add new ones */ enum { FLY_MODAL_CANCEL = 1, FLY_MODAL_CONFIRM, diff --git a/source/blender/editors/space_view3d/view3d_walk.c b/source/blender/editors/space_view3d/view3d_walk.c index a716264febb..c19a1965a56 100644 --- a/source/blender/editors/space_view3d/view3d_walk.c +++ b/source/blender/editors/space_view3d/view3d_walk.c @@ -65,7 +65,8 @@ #ifdef WITH_INPUT_NDOF //# define NDOF_WALK_DEBUG -//# define NDOF_WALK_DRAW_TOOMUCH /* is this needed for ndof? - commented so redraw doesn't thrash - campbell */ +/* is this needed for ndof? - commented so redraw doesn't thrash - campbell */ +//# define NDOF_WALK_DRAW_TOOMUCH #endif #define USE_TABLET_SUPPORT @@ -76,7 +77,8 @@ /* prototypes */ static float getVelocityZeroTime(const float gravity, const float velocity); -/* NOTE: these defines are saved in keymap files, do not change values but just add new ones */ +/* NOTE: these defines are saved in keymap files, + * do not change values but just add new ones */ enum { WALK_MODAL_CANCEL = 1, WALK_MODAL_CONFIRM, @@ -1378,7 +1380,8 @@ static int walk_modal(bContext *C, wmOperator *op, const wmEvent *event) WM_event_add_notifier(C, NC_OBJECT | ND_TRANSFORM, walk_object); } - // puts("redraw!"); // too frequent, commented with NDOF_WALK_DRAW_TOOMUCH for now + // too frequent, commented with NDOF_WALK_DRAW_TOOMUCH for now + // puts("redraw!"); ED_region_tag_redraw(CTX_wm_region(C)); } -- cgit v1.2.3