SL-16517 Dragging a physic object momentarily moves it to an incorrect location.
parent
92933b4252
commit
f22d659c6f
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue