Cleanup: doxy sections for walk/fly operators
This commit is contained in:
@@ -1126,3 +1126,5 @@ int BKE_sequence_supports_modifiers(Sequence *seq)
|
||||
{
|
||||
return !ELEM(seq->type, SEQ_TYPE_SOUND_RAM, SEQ_TYPE_SOUND_HD);
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
@@ -55,6 +55,10 @@
|
||||
|
||||
#include "view3d_intern.h" /* own include */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Modal Key-map
|
||||
* \{ */
|
||||
|
||||
/* NOTE: these defines are saved in keymap files,
|
||||
* do not change values but just add new ones */
|
||||
enum {
|
||||
@@ -138,6 +142,12 @@ void fly_modal_keymap(wmKeyConfig *keyconf)
|
||||
WM_modalkeymap_assign(keymap, "VIEW3D_OT_fly");
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Fly Structs
|
||||
* \{ */
|
||||
|
||||
typedef struct FlyInfo {
|
||||
/* context stuff */
|
||||
RegionView3D *rv3d;
|
||||
@@ -205,6 +215,12 @@ typedef struct FlyInfo {
|
||||
|
||||
} FlyInfo;
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Fly Drawing
|
||||
* \{ */
|
||||
|
||||
/* prototypes */
|
||||
#ifdef WITH_INPUT_NDOF
|
||||
static void flyApply_ndof(bContext *C, FlyInfo *fly, bool is_confirm);
|
||||
@@ -278,6 +294,12 @@ static void drawFlyPixel(const struct bContext *UNUSED(C), ARegion *UNUSED(regio
|
||||
immUnbindProgram();
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Fly Logic
|
||||
* \{ */
|
||||
|
||||
/* FlyInfo->state */
|
||||
enum {
|
||||
FLY_RUNNING = 0,
|
||||
@@ -1034,6 +1056,12 @@ static void flyApply_ndof(bContext *C, FlyInfo *fly, bool is_confirm)
|
||||
}
|
||||
#endif /* WITH_INPUT_NDOF */
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Fly Operator
|
||||
* \{ */
|
||||
|
||||
static int fly_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
RegionView3D *rv3d = CTX_wm_region_view3d(C);
|
||||
@@ -1128,3 +1156,5 @@ void VIEW3D_OT_fly(wmOperatorType *ot)
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_BLOCKING;
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
@@ -65,6 +65,10 @@
|
||||
/* ensure the target position is one we can reach, see: T45771 */
|
||||
#define USE_PIXELSIZE_NATIVE_SUPPORT
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Modal Key-map
|
||||
* \{ */
|
||||
|
||||
/* NOTE: these defines are saved in keymap files,
|
||||
* do not change values but just add new ones */
|
||||
enum {
|
||||
@@ -173,6 +177,12 @@ void walk_modal_keymap(wmKeyConfig *keyconf)
|
||||
WM_modalkeymap_assign(keymap, "VIEW3D_OT_walk");
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Walk Structs
|
||||
* \{ */
|
||||
|
||||
typedef struct WalkTeleport {
|
||||
eWalkTeleportState state;
|
||||
float duration; /* from user preferences */
|
||||
@@ -283,6 +293,12 @@ typedef struct WalkInfo {
|
||||
|
||||
} WalkInfo;
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Walk Drawing
|
||||
* \{ */
|
||||
|
||||
/* prototypes */
|
||||
#ifdef WITH_INPUT_NDOF
|
||||
static void walkApply_ndof(bContext *C, WalkInfo *walk, bool is_confirm);
|
||||
@@ -340,6 +356,12 @@ static void drawWalkPixel(const struct bContext *UNUSED(C), ARegion *region, voi
|
||||
immUnbindProgram();
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Internal Walk Logic
|
||||
* \{ */
|
||||
|
||||
static void walk_navigation_mode_set(WalkInfo *walk, eWalkMethod mode)
|
||||
{
|
||||
if (mode == WALK_MODE_FREE) {
|
||||
@@ -1343,7 +1365,12 @@ static void walkApply_ndof(bContext *C, WalkInfo *walk, bool is_confirm)
|
||||
}
|
||||
#endif /* WITH_INPUT_NDOF */
|
||||
|
||||
/****** walk operator ******/
|
||||
/** \} */
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name Walk Operator
|
||||
* \{ */
|
||||
|
||||
static int walk_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
RegionView3D *rv3d = CTX_wm_region_view3d(C);
|
||||
@@ -1438,3 +1465,5 @@ void VIEW3D_OT_walk(wmOperatorType *ot)
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_BLOCKING;
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
||||
Reference in New Issue
Block a user