Fix compiler error when building without `WITH_INPUT_NDOF`

Some declarations were outside the `#ifdef WITH_INPUT_NDOF`, but still
referred to things inside that block. Now everything is inside the file.
This commit is contained in:
Sybren A. Stüvel 2023-07-24 16:42:56 +02:00
parent 2c3b095995
commit 47cc5787a6
1 changed files with 4 additions and 4 deletions

View File

@ -746,10 +746,6 @@ void VIEW3D_OT_ndof_all(wmOperatorType *ot)
ot->flag = 0;
}
#endif /* WITH_INPUT_NDOF */
/** \} */
const ViewOpsType ViewOpsType_ndof_orbit = {
/*flag*/ VIEWOPS_FLAG_ORBIT_SELECT,
/*idname*/ "VIEW3D_OT_ndof_orbit",
@ -781,3 +777,7 @@ const ViewOpsType ViewOpsType_ndof_all = {
/*init_fn*/ ndof_all_invoke_impl,
/*apply_fn*/ nullptr,
};
#endif /* WITH_INPUT_NDOF */
/** \} */