SL-16517 Dragging a physic object momentarily moves it to an incorrect location.

master
Andrey Kleshchev 2021-12-17 19:12:36 +02:00
parent 92933b4252
commit f22d659c6f
1 changed files with 2 additions and 2 deletions

View File

@ -529,8 +529,8 @@ void LLToolGrabBase::handleHoverActive(S32 x, S32 y, MASK mask)
const F32 RADIANS_PER_PIXEL_X = 0.01f;
const F32 RADIANS_PER_PIXEL_Y = 0.01f;
S32 dx = x - (gViewerWindow->getWorldViewWidthScaled() / 2);
S32 dy = y - (gViewerWindow->getWorldViewHeightScaled() / 2);
S32 dx = gViewerWindow->getCurrentMouseDX() / 2;
S32 dy = gViewerWindow->getCurrentMouseDY() / 2;
if (dx != 0 || dy != 0)
{