let us see our online friends

avinationmerge
UbitUmarov 2015-09-28 20:57:33 +01:00
parent 028cbb7cbe
commit f97807b53f
1 changed files with 6 additions and 6 deletions

View File

@ -2025,8 +2025,8 @@ namespace OpenSim.Region.Framework.Scenes
if (!IsChildAgent && openChildAgents) if (!IsChildAgent && openChildAgents)
{ {
IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>(); IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>();
// if (friendsModule != null) if (friendsModule != null)
// friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); friendsModule.SendFriendsOnlineIfNeeded(ControllingClient);
m_log.DebugFormat("[CompleteMovement] friendsModule: {0}ms", Util.EnvironmentTickCountSubtract(ts)); m_log.DebugFormat("[CompleteMovement] friendsModule: {0}ms", Util.EnvironmentTickCountSubtract(ts));
@ -2882,7 +2882,6 @@ namespace OpenSim.Region.Framework.Scenes
if (satOnObject) if (satOnObject)
{ {
m_requestedSitTargetID = 0; m_requestedSitTargetID = 0;
part.RemoveSittingAvatar(this); part.RemoveSittingAvatar(this);
part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK); part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK);
@ -3011,7 +3010,6 @@ namespace OpenSim.Region.Framework.Scenes
} }
} }
ControllingClient.SendSitResponse( ControllingClient.SendSitResponse(
part.ParentGroup.UUID, offset, sitOrientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook); part.ParentGroup.UUID, offset, sitOrientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook);
@ -3262,12 +3260,14 @@ namespace OpenSim.Region.Framework.Scenes
} }
part.AddSittingAvatar(this); part.AddSittingAvatar(this);
ParentPart = m_scene.GetSceneObjectPart(m_requestedSitTargetID); ParentPart = part;
ParentID = m_requestedSitTargetID; ParentID = m_requestedSitTargetID;
m_AngularVelocity = Vector3.Zero; m_AngularVelocity = Vector3.Zero;
Velocity = Vector3.Zero; Velocity = Vector3.Zero;
RemoveFromPhysicalScene(); RemoveFromPhysicalScene();
m_requestedSitTargetID = 0;
SendAvatarDataToAllAgents(); SendAvatarDataToAllAgents();
sitAnimation = "SIT"; sitAnimation = "SIT";