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:
committed by
Jesse Yurkovich
parent
f6bbcaba6d
commit
eb39d81afa
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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(®ion->winrct, event_xy_offset, this->init.trackvec);
|
||||
|
||||
Reference in New Issue
Block a user