Fix View Pan operation failing

Caused by 329cf07499a4eb3814e2cc3db123b393a330ec4c
This commit is contained in:
Germano Cavalcante 2023-07-24 10:40:15 -03:00
parent b220ec27d7
commit 30b53c1005
2 changed files with 2 additions and 2 deletions

@ -52,7 +52,7 @@ static eViewOpsFlag viewops_flag_from_prefs()
const bool use_zoom_to_mouse = (U.uiflag & USER_ZOOM_TO_MOUSEPOS) != 0;
const bool use_auto_persp = (U.uiflag & USER_AUTOPERSP) != 0;
enum eViewOpsFlag flag = VIEWOPS_FLAG_NONE;
enum eViewOpsFlag flag = VIEWOPS_FLAG_INIT_ZFAC;
if (use_select) {
flag |= VIEWOPS_FLAG_ORBIT_SELECT;
}

@ -78,7 +78,7 @@ enum eViewOpsFlag {
VIEWOPS_FLAG_INIT_ZFAC = (1 << 5),
};
ENUM_OPERATORS(eViewOpsFlag, VIEWOPS_FLAG_ZOOM_TO_MOUSE);
ENUM_OPERATORS(eViewOpsFlag, VIEWOPS_FLAG_INIT_ZFAC);
struct ViewOpsType {
eViewOpsFlag flag;