Fix #132396: Orbit Gizmo navigation used wrong math operation

Regression from 3d0988a719 where two adds
were accidentally changed to subtracts.

Pull Request: https://projects.blender.org/blender/blender/pulls/132440
This commit is contained in:
Jesse Yurkovich
2024-12-30 02:55:52 +01:00
committed by Jesse Yurkovich
parent f6bbcaba6d
commit eb39d81afa
2 changed files with 2 additions and 2 deletions

View File

@@ -10683,7 +10683,7 @@ static int ui_handle_menu_event(bContext *C,
copy_v2_v2_int(menu->grab_xy_prev, event->xy);
menu->popup_create_vars.event_xy -= mdiff;
menu->popup_create_vars.event_xy += mdiff;
ui_popup_translate(region, mdiff);
}

View File

@@ -354,7 +354,7 @@ void ViewOpsData::init_navigation(bContext *C,
ED_view3d_win_to_vector(region, mval, this->init.mousevec);
{
int2 event_xy_offset = int2(event->xy) - this->init.event_xy_offset;
int2 event_xy_offset = int2(event->xy) + this->init.event_xy_offset;
/* For rotation with trackball rotation. */
calctrackballvec(&region->winrct, event_xy_offset, this->init.trackvec);