diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 159a92a..f0ceff6 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -439,7 +439,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
439 | get { return (IClientCore)ControllingClient; } | 439 | get { return (IClientCore)ControllingClient; } |
440 | } | 440 | } |
441 | 441 | ||
442 | public Vector3 ParentPosition { get; set; } | 442 | // public Vector3 ParentPosition { get; set; } |
443 | 443 | ||
444 | /// <summary> | 444 | /// <summary> |
445 | /// Position of this avatar relative to the region the avatar is in | 445 | /// Position of this avatar relative to the region the avatar is in |
@@ -497,7 +497,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
497 | if (ParentID == 0) | 497 | if (ParentID == 0) |
498 | { | 498 | { |
499 | m_pos = value; | 499 | m_pos = value; |
500 | ParentPosition = Vector3.Zero; | 500 | // ParentPosition = Vector3.Zero; |
501 | } | 501 | } |
502 | 502 | ||
503 | //m_log.DebugFormat( | 503 | //m_log.DebugFormat( |
@@ -865,11 +865,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
865 | part.ParentGroup.AddAvatar(UUID); | 865 | part.ParentGroup.AddAvatar(UUID); |
866 | if (part.SitTargetPosition != Vector3.Zero) | 866 | if (part.SitTargetPosition != Vector3.Zero) |
867 | part.SitTargetAvatar = UUID; | 867 | part.SitTargetAvatar = UUID; |
868 | ParentPosition = part.GetWorldPosition(); | 868 | // ParentPosition = part.GetWorldPosition(); |
869 | ParentID = part.LocalId; | 869 | ParentID = part.LocalId; |
870 | ParentPart = part; | 870 | ParentPart = part; |
871 | m_pos = m_prevSitOffset; | 871 | m_pos = m_prevSitOffset; |
872 | pos = ParentPosition; | 872 | // pos = ParentPosition; |
873 | pos = part.GetWorldPosition(); | ||
873 | } | 874 | } |
874 | ParentUUID = UUID.Zero; | 875 | ParentUUID = UUID.Zero; |
875 | 876 | ||
@@ -1944,11 +1945,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1944 | part.SitTargetAvatar = UUID.Zero; | 1945 | part.SitTargetAvatar = UUID.Zero; |
1945 | 1946 | ||
1946 | part.ParentGroup.DeleteAvatar(UUID); | 1947 | part.ParentGroup.DeleteAvatar(UUID); |
1947 | ParentPosition = part.GetWorldPosition(); | 1948 | // ParentPosition = part.GetWorldPosition(); |
1948 | ControllingClient.SendClearFollowCamProperties(part.ParentUUID); | 1949 | ControllingClient.SendClearFollowCamProperties(part.ParentUUID); |
1949 | 1950 | ||
1950 | m_pos += ParentPosition + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); | 1951 | // m_pos += ParentPosition + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); |
1951 | ParentPosition = Vector3.Zero; | 1952 | // ParentPosition = Vector3.Zero; |
1953 | m_pos += part.GetWorldPosition() + new Vector3(0.0f, 0.0f, 2.0f * m_sitAvatarHeight); | ||
1952 | 1954 | ||
1953 | ParentID = 0; | 1955 | ParentID = 0; |
1954 | ParentPart = null; | 1956 | ParentPart = null; |
@@ -2399,13 +2401,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
2399 | 2401 | ||
2400 | // m_pos = sitTargetPos + SIT_TARGET_ADJUSTMENT - sitOffset; | 2402 | // m_pos = sitTargetPos + SIT_TARGET_ADJUSTMENT - sitOffset; |
2401 | Rotation = sitTargetOrient; | 2403 | Rotation = sitTargetOrient; |
2402 | ParentPosition = part.AbsolutePosition; | 2404 | // ParentPosition = part.AbsolutePosition; |
2403 | part.ParentGroup.AddAvatar(UUID); | 2405 | part.ParentGroup.AddAvatar(UUID); |
2404 | } | 2406 | } |
2405 | else | 2407 | else |
2406 | { | 2408 | { |
2407 | m_pos -= part.AbsolutePosition; | 2409 | m_pos -= part.AbsolutePosition; |
2408 | ParentPosition = part.AbsolutePosition; | 2410 | // ParentPosition = part.AbsolutePosition; |
2409 | part.ParentGroup.AddAvatar(UUID); | 2411 | part.ParentGroup.AddAvatar(UUID); |
2410 | 2412 | ||
2411 | // m_log.DebugFormat( | 2413 | // m_log.DebugFormat( |
@@ -3587,7 +3589,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
3587 | // m_reprioritizationTimer.Dispose(); | 3589 | // m_reprioritizationTimer.Dispose(); |
3588 | 3590 | ||
3589 | RemoveFromPhysicalScene(); | 3591 | RemoveFromPhysicalScene(); |
3590 | Animator.Close(); | 3592 | if(Animator != null) |
3593 | Animator.Close(); | ||
3591 | Animator = null; | 3594 | Animator = null; |
3592 | } | 3595 | } |
3593 | 3596 | ||