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:
parent
2c3b095995
commit
47cc5787a6
|
@ -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 */
|
||||
|
||||
/** \} */
|
||||
|
|
Loading…
Reference in New Issue