aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolgrab.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltoolgrab.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/newview/lltoolgrab.cpp b/linden/indra/newview/lltoolgrab.cpp
index b49e8de..5eb688b 100644
--- a/linden/indra/newview/lltoolgrab.cpp
+++ b/linden/indra/newview/lltoolgrab.cpp
@@ -407,6 +407,7 @@ void LLToolGrab::startGrab()
407 mLastIntersection = mGrabPick.mIntersection; 407 mLastIntersection = mGrabPick.mIntersection;
408 mLastNormal = mGrabPick.mNormal; 408 mLastNormal = mGrabPick.mNormal;
409 mLastBinormal = mGrabPick.mBinormal; 409 mLastBinormal = mGrabPick.mBinormal;
410 mLastGrabPos = LLVector3(-1.f, -1.f, -1.f);
410} 411}
411 412
412 413
@@ -809,12 +810,14 @@ void LLToolGrab::handleHoverNonPhysical(S32 x, S32 y, MASK mask)
809 810
810 BOOL changed_since_last_update = FALSE; 811 BOOL changed_since_last_update = FALSE;
811 812
813 // test if touch data needs to be updated
812 if ((pick.mObjectFace != mLastFace) || 814 if ((pick.mObjectFace != mLastFace) ||
813 (pick.mUVCoords != mLastUVCoords) || 815 (pick.mUVCoords != mLastUVCoords) ||
814 (pick.mSTCoords != mLastSTCoords) || 816 (pick.mSTCoords != mLastSTCoords) ||
815 (pick.mIntersection != mLastIntersection) || 817 (pick.mIntersection != mLastIntersection) ||
816 (pick.mNormal != mLastNormal) || 818 (pick.mNormal != mLastNormal) ||
817 (pick.mBinormal != mLastBinormal)) 819 (pick.mBinormal != mLastBinormal) ||
820 (grab_pos_region != mLastGrabPos))
818 { 821 {
819 changed_since_last_update = TRUE; 822 changed_since_last_update = TRUE;
820 } 823 }
@@ -847,6 +850,7 @@ void LLToolGrab::handleHoverNonPhysical(S32 x, S32 y, MASK mask)
847 mLastIntersection = pick.mIntersection; 850 mLastIntersection = pick.mIntersection;
848 mLastNormal= pick.mNormal; 851 mLastNormal= pick.mNormal;
849 mLastBinormal= pick.mBinormal; 852 mLastBinormal= pick.mBinormal;
853 mLastGrabPos = grab_pos_region;
850 } 854 }
851 855
852 // update point-at / look-at 856 // update point-at / look-at