diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-12-17 19:12:36 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-12-17 19:12:52 +0200 |
commit | f22d659c6f2d9d99749be532730c09d283598e2e (patch) | |
tree | 7dfc6f91aa5dfafc0928037a4e52e50ae343ee90 /indra | |
parent | 92933b42522b37ad78fd714e8416681183d7d7f9 (diff) |
SL-16517 Dragging a physic object momentarily moves it to an incorrect location.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lltoolgrab.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/lltoolgrab.cpp b/indra/newview/lltoolgrab.cpp index f01b374db1..a0229b4edf 100644 --- a/indra/newview/lltoolgrab.cpp +++ b/indra/newview/lltoolgrab.cpp @@ -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) { |