aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 1211792..108b044 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -753,9 +753,10 @@ namespace OpenSim.Region.Framework.Scenes
753 if (m_movementAnimationUpdateCounter >= 2) 753 if (m_movementAnimationUpdateCounter >= 2)
754 { 754 {
755 m_movementAnimationUpdateCounter = 0; 755 m_movementAnimationUpdateCounter = 0;
756 if (Animator != null && ParentID == 0) // skip it if sitting 756 if (Animator != null)
757 { 757 {
758 Animator.UpdateMovementAnimations(); 758 if(ParentID == 0) // skip it if sitting
759 Animator.UpdateMovementAnimations();
759 } 760 }
760 else 761 else
761 { 762 {
@@ -1400,6 +1401,7 @@ namespace OpenSim.Region.Framework.Scenes
1400 { 1401 {
1401 // Vector3 posAdjusted = m_pos + HEAD_ADJUSTMENT; 1402 // Vector3 posAdjusted = m_pos + HEAD_ADJUSTMENT;
1402 // m_scene.PhysicsScene.RaycastWorld(m_pos, Vector3.Normalize(CameraPosition - posAdjusted), Vector3.Distance(CameraPosition, posAdjusted) + 0.3f, RayCastCameraCallback); 1403 // m_scene.PhysicsScene.RaycastWorld(m_pos, Vector3.Normalize(CameraPosition - posAdjusted), Vector3.Distance(CameraPosition, posAdjusted) + 0.3f, RayCastCameraCallback);
1404
1403 Vector3 posAdjusted = AbsolutePosition + HEAD_ADJUSTMENT; 1405 Vector3 posAdjusted = AbsolutePosition + HEAD_ADJUSTMENT;
1404 Vector3 distTocam = CameraPosition - posAdjusted; 1406 Vector3 distTocam = CameraPosition - posAdjusted;
1405 float distTocamlen = distTocam.Length(); 1407 float distTocamlen = distTocam.Length();
@@ -1408,6 +1410,7 @@ namespace OpenSim.Region.Framework.Scenes
1408 distTocam *= 1.0f / distTocamlen; 1410 distTocam *= 1.0f / distTocamlen;
1409 m_scene.PhysicsScene.RaycastWorld(posAdjusted, distTocam, distTocamlen + 0.3f, RayCastCameraCallback); 1411 m_scene.PhysicsScene.RaycastWorld(posAdjusted, distTocam, distTocamlen + 0.3f, RayCastCameraCallback);
1410 } 1412 }
1413
1411 } 1414 }
1412 } 1415 }
1413 1416