diff options
author | Melanie | 2011-12-10 00:40:41 +0000 |
---|---|---|
committer | Melanie | 2011-12-10 00:40:41 +0000 |
commit | 3f421837979a1d3d830274c967abc7258cb50687 (patch) | |
tree | 3ae57deca915d7dc89586d103d48c6f6f6fd1d6d /OpenSim/Region | |
parent | Merge branch 'master' into careminster (diff) | |
parent | minor: remove a mono compiler warning (diff) | |
download | opensim-SC-3f421837979a1d3d830274c967abc7258cb50687.zip opensim-SC-3f421837979a1d3d830274c967abc7258cb50687.tar.gz opensim-SC-3f421837979a1d3d830274c967abc7258cb50687.tar.bz2 opensim-SC-3f421837979a1d3d830274c967abc7258cb50687.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
Diffstat (limited to 'OpenSim/Region')
7 files changed, 49 insertions, 90 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index af68de6..ace4444 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -548,7 +548,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
548 | 548 | ||
549 | public void Kick(string message) | 549 | public void Kick(string message) |
550 | { | 550 | { |
551 | if (!ChildAgentStatus()) | 551 | if (!SceneAgent.IsChildAgent) |
552 | { | 552 | { |
553 | KickUserPacket kupack = (KickUserPacket)PacketPool.Instance.GetPacket(PacketType.KickUser); | 553 | KickUserPacket kupack = (KickUserPacket)PacketPool.Instance.GetPacket(PacketType.KickUser); |
554 | kupack.UserInfo.AgentID = AgentId; | 554 | kupack.UserInfo.AgentID = AgentId; |
@@ -2465,7 +2465,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2465 | /// <param name="Message"></param> | 2465 | /// <param name="Message"></param> |
2466 | public void SendBlueBoxMessage(UUID FromAvatarID, String FromAvatarName, String Message) | 2466 | public void SendBlueBoxMessage(UUID FromAvatarID, String FromAvatarName, String Message) |
2467 | { | 2467 | { |
2468 | if (!ChildAgentStatus()) | 2468 | if (!SceneAgent.IsChildAgent) |
2469 | SendInstantMessage(new GridInstantMessage(null, FromAvatarID, FromAvatarName, AgentId, 1, Message, false, new Vector3())); | 2469 | SendInstantMessage(new GridInstantMessage(null, FromAvatarID, FromAvatarName, AgentId, 1, Message, false, new Vector3())); |
2470 | 2470 | ||
2471 | //SendInstantMessage(FromAvatarID, fromSessionID, Message, AgentId, SessionId, FromAvatarName, (byte)21,(uint) Util.UnixTimeSinceEpoch()); | 2471 | //SendInstantMessage(FromAvatarID, fromSessionID, Message, AgentId, SessionId, FromAvatarName, (byte)21,(uint) Util.UnixTimeSinceEpoch()); |
@@ -5112,14 +5112,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
5112 | return 0; | 5112 | return 0; |
5113 | } | 5113 | } |
5114 | 5114 | ||
5115 | /// <summary> | ||
5116 | /// This is a utility method used by single states to not duplicate kicks and blue card of death messages. | ||
5117 | /// </summary> | ||
5118 | public bool ChildAgentStatus() | ||
5119 | { | ||
5120 | return m_scene.PresenceChildStatus(AgentId); | ||
5121 | } | ||
5122 | |||
5123 | #endregion | 5115 | #endregion |
5124 | 5116 | ||
5125 | /// <summary> | 5117 | /// <summary> |
@@ -11750,7 +11742,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
11750 | if (logPacket) | 11742 | if (logPacket) |
11751 | m_log.DebugFormat( | 11743 | m_log.DebugFormat( |
11752 | "[CLIENT]: PACKET OUT to {0} ({1}) in {2} - {3}", | 11744 | "[CLIENT]: PACKET OUT to {0} ({1}) in {2} - {3}", |
11753 | Name, ChildAgentStatus() ? "child" : "root ", m_scene.RegionInfo.RegionName, packet.Type); | 11745 | Name, SceneAgent.IsChildAgent ? "child" : "root ", m_scene.RegionInfo.RegionName, packet.Type); |
11754 | } | 11746 | } |
11755 | 11747 | ||
11756 | m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting, method); | 11748 | m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting, method); |
@@ -11807,7 +11799,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
11807 | if (logPacket) | 11799 | if (logPacket) |
11808 | m_log.DebugFormat( | 11800 | m_log.DebugFormat( |
11809 | "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}", | 11801 | "[CLIENT]: PACKET IN from {0} ({1}) in {2} - {3}", |
11810 | Name, ChildAgentStatus() ? "child" : "root ", m_scene.RegionInfo.RegionName, packet.Type); | 11802 | Name, SceneAgent.IsChildAgent ? "child" : "root ", m_scene.RegionInfo.RegionName, packet.Type); |
11811 | } | 11803 | } |
11812 | 11804 | ||
11813 | if (!ProcessPacketMethod(packet)) | 11805 | if (!ProcessPacketMethod(packet)) |
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index d866636..2efb269 100644 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs | |||
@@ -320,10 +320,8 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
320 | 320 | ||
321 | defonly = false; // found a non-default texture reference | 321 | defonly = false; // found a non-default texture reference |
322 | 322 | ||
323 | if (!CheckBakedTextureAsset(sp, face.TextureID, idx)) | 323 | if (m_scene.AssetService.Get(face.TextureID.ToString()) == null) |
324 | { | 324 | { |
325 | // the asset didn't exist if we are only checking, then we found a bad | ||
326 | // one and we're done otherwise, ask for a rebake | ||
327 | if (checkonly) | 325 | if (checkonly) |
328 | return false; | 326 | return false; |
329 | 327 | ||
@@ -337,24 +335,6 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory | |||
337 | return (defonly ? false : true); | 335 | return (defonly ? false : true); |
338 | } | 336 | } |
339 | 337 | ||
340 | /// <summary> | ||
341 | /// Checks for the existance of a baked texture asset and | ||
342 | /// requests the viewer rebake if the asset is not found | ||
343 | /// </summary> | ||
344 | /// <param name="sp"></param> | ||
345 | /// <param name="textureID"></param> | ||
346 | /// <param name="idx"></param> | ||
347 | private bool CheckBakedTextureAsset(IScenePresence sp, UUID textureID, int idx) | ||
348 | { | ||
349 | if (m_scene.AssetService.Get(textureID.ToString()) == null) | ||
350 | { | ||
351 | m_log.InfoFormat("[AVFACTORY]: Missing baked texture {0} ({1}) for avatar {2}", | ||
352 | textureID, idx, sp.Name); | ||
353 | return false; | ||
354 | } | ||
355 | return true; | ||
356 | } | ||
357 | |||
358 | private Dictionary<BakeType, Primitive.TextureEntryFace> GetBakedTextureFaces(ScenePresence sp) | 338 | private Dictionary<BakeType, Primitive.TextureEntryFace> GetBakedTextureFaces(ScenePresence sp) |
359 | { | 339 | { |
360 | if (sp.IsChildAgent) | 340 | if (sp.IsChildAgent) |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 684745f..a81ee79 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -787,7 +787,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
787 | } | 787 | } |
788 | } | 788 | } |
789 | 789 | ||
790 | m_log.Info("[SCENE]: Using the " + m_priorityScheme + " prioritization scheme"); | 790 | m_log.InfoFormat("[SCENE]: Using the {0} prioritization scheme", m_priorityScheme); |
791 | 791 | ||
792 | #endregion Interest Management | 792 | #endregion Interest Management |
793 | 793 | ||
@@ -918,9 +918,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
918 | } | 918 | } |
919 | else | 919 | else |
920 | { | 920 | { |
921 | m_log.Info("[INTERGRID]: Got notice about far away Region: " + otherRegion.RegionName.ToString() + | 921 | m_log.InfoFormat( |
922 | " at (" + otherRegion.RegionLocX.ToString() + ", " + | 922 | "[INTERGRID]: Got notice about far away Region: {0} at ({1}, {2})", |
923 | otherRegion.RegionLocY.ToString() + ")"); | 923 | otherRegion.RegionName, otherRegion.RegionLocX, otherRegion.RegionLocY); |
924 | } | 924 | } |
925 | } | 925 | } |
926 | } | 926 | } |
@@ -1414,7 +1414,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1414 | } | 1414 | } |
1415 | catch (AccessViolationException e) | 1415 | catch (AccessViolationException e) |
1416 | { | 1416 | { |
1417 | m_log.Error("[REGION]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); | 1417 | m_log.ErrorFormat( |
1418 | "[REGION]: Failed on region {0} with exception {1}{2}", | ||
1419 | RegionInfo.RegionName, e.Message, e.StackTrace); | ||
1418 | } | 1420 | } |
1419 | //catch (NullReferenceException e) | 1421 | //catch (NullReferenceException e) |
1420 | //{ | 1422 | //{ |
@@ -1422,11 +1424,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
1422 | //} | 1424 | //} |
1423 | catch (InvalidOperationException e) | 1425 | catch (InvalidOperationException e) |
1424 | { | 1426 | { |
1425 | m_log.Error("[REGION]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); | 1427 | m_log.ErrorFormat( |
1428 | "[REGION]: Failed on region {0} with exception {1}{2}", | ||
1429 | RegionInfo.RegionName, e.Message, e.StackTrace); | ||
1426 | } | 1430 | } |
1427 | catch (Exception e) | 1431 | catch (Exception e) |
1428 | { | 1432 | { |
1429 | m_log.Error("[REGION]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); | 1433 | m_log.ErrorFormat( |
1434 | "[REGION]: Failed on region {0} with exception {1}{2}", | ||
1435 | RegionInfo.RegionName, e.Message, e.StackTrace); | ||
1430 | } | 1436 | } |
1431 | 1437 | ||
1432 | maintc = Util.EnvironmentTickCountSubtract(maintc); | 1438 | maintc = Util.EnvironmentTickCountSubtract(maintc); |
@@ -1652,7 +1658,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1652 | } | 1658 | } |
1653 | catch (IOException e) | 1659 | catch (IOException e) |
1654 | { | 1660 | { |
1655 | m_log.Warn("[TERRAIN]: Scene.cs: LoadWorldMap() - Failed with exception " + e.ToString() + " Regenerating"); | 1661 | m_log.WarnFormat( |
1662 | "[TERRAIN]: Scene.cs: LoadWorldMap() - Regenerating as failed with exception {0}{1}", | ||
1663 | e.Message, e.StackTrace); | ||
1656 | 1664 | ||
1657 | // Non standard region size. If there's an old terrain in the database, it might read past the buffer | 1665 | // Non standard region size. If there's an old terrain in the database, it might read past the buffer |
1658 | #pragma warning disable 0162 | 1666 | #pragma warning disable 0162 |
@@ -1665,7 +1673,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1665 | } | 1673 | } |
1666 | catch (Exception e) | 1674 | catch (Exception e) |
1667 | { | 1675 | { |
1668 | m_log.Warn("[TERRAIN]: Scene.cs: LoadWorldMap() - Failed with exception " + e.ToString()); | 1676 | m_log.WarnFormat( |
1677 | "[TERRAIN]: Scene.cs: LoadWorldMap() - Failed with exception {0}{1}", e.Message, e.StackTrace); | ||
1669 | } | 1678 | } |
1670 | } | 1679 | } |
1671 | 1680 | ||
@@ -1739,7 +1748,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1739 | 1748 | ||
1740 | List<SceneObjectGroup> PrimsFromDB = SimulationDataService.LoadObjects(regionID); | 1749 | List<SceneObjectGroup> PrimsFromDB = SimulationDataService.LoadObjects(regionID); |
1741 | 1750 | ||
1742 | m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count + " objects from the datastore"); | 1751 | m_log.InfoFormat("[SCENE]: Loaded {0} objects from the datastore", PrimsFromDB.Count); |
1743 | 1752 | ||
1744 | foreach (SceneObjectGroup group in PrimsFromDB) | 1753 | foreach (SceneObjectGroup group in PrimsFromDB) |
1745 | { | 1754 | { |
@@ -1753,7 +1762,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
1753 | // group.CheckSculptAndLoad(); | 1762 | // group.CheckSculptAndLoad(); |
1754 | } | 1763 | } |
1755 | 1764 | ||
1756 | m_log.Info("[SCENE]: Loaded " + PrimsFromDB.Count.ToString() + " SceneObject(s)"); | ||
1757 | LoadingPrims = false; | 1765 | LoadingPrims = false; |
1758 | EventManager.TriggerPrimsLoaded(this); | 1766 | EventManager.TriggerPrimsLoaded(this); |
1759 | } | 1767 | } |
@@ -2413,7 +2421,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2413 | } | 2421 | } |
2414 | catch (Exception e) | 2422 | catch (Exception e) |
2415 | { | 2423 | { |
2416 | m_log.WarnFormat("[SCENE]: Problem casting object: " + e.ToString()); | 2424 | m_log.WarnFormat("[SCENE]: Problem casting object, exception {0}{1}", e.Message, e.StackTrace); |
2417 | return false; | 2425 | return false; |
2418 | } | 2426 | } |
2419 | 2427 | ||
@@ -2496,8 +2504,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2496 | int flags = GetUserFlags(sceneObject.OwnerID); | 2504 | int flags = GetUserFlags(sceneObject.OwnerID); |
2497 | if (m_regInfo.EstateSettings.IsBanned(sceneObject.OwnerID, flags)) | 2505 | if (m_regInfo.EstateSettings.IsBanned(sceneObject.OwnerID, flags)) |
2498 | { | 2506 | { |
2499 | m_log.Info("[INTERREGION]: Denied prim crossing for " + | 2507 | m_log.InfoFormat("[INTERREGION]: Denied prim crossing for banned avatar {0}", sceneObject.OwnerID); |
2500 | "banned avatar"); | ||
2501 | 2508 | ||
2502 | return false; | 2509 | return false; |
2503 | } | 2510 | } |
@@ -2565,8 +2572,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2565 | { | 2572 | { |
2566 | // Deny non attachments based on parcel settings | 2573 | // Deny non attachments based on parcel settings |
2567 | // | 2574 | // |
2568 | m_log.Info("[INTERREGION]: Denied prim crossing " + | 2575 | m_log.Info("[INTERREGION]: Denied prim crossing because of parcel settings"); |
2569 | "because of parcel settings"); | ||
2570 | 2576 | ||
2571 | DeleteSceneObject(sceneObject, false); | 2577 | DeleteSceneObject(sceneObject, false); |
2572 | 2578 | ||
@@ -2629,7 +2635,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
2629 | // connected. | 2635 | // connected. |
2630 | if (sp == null) | 2636 | if (sp == null) |
2631 | { | 2637 | { |
2632 | m_log.Debug("[SCENE]: Adding new child scene presence " + client.Name + " to scene " + RegionInfo.RegionName); | 2638 | m_log.DebugFormat( |
2639 | "[SCENE]: Adding new child scene presence {0} to scene {1}", client.Name, RegionInfo.RegionName); | ||
2633 | 2640 | ||
2634 | m_clientManager.Add(client); | 2641 | m_clientManager.Add(client); |
2635 | SubscribeToClientEvents(client); | 2642 | SubscribeToClientEvents(client); |
@@ -3277,7 +3284,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3277 | } | 3284 | } |
3278 | catch (Exception e) | 3285 | catch (Exception e) |
3279 | { | 3286 | { |
3280 | m_log.Error("[SCENE] Scene.cs:RemoveClient exception: " + e.ToString()); | 3287 | m_log.ErrorFormat("[SCENE] Scene.cs:RemoveClient exception {0}{1}", e.Message, e.StackTrace); |
3281 | } | 3288 | } |
3282 | m_log.Debug("[Scene] Done. Firing RemoveCircuit"); | 3289 | m_log.Debug("[Scene] Done. Firing RemoveCircuit"); |
3283 | m_authenticateHandler.RemoveCircuit(avatar.ControllingClient.CircuitCode); | 3290 | m_authenticateHandler.RemoveCircuit(avatar.ControllingClient.CircuitCode); |
@@ -3426,7 +3433,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
3426 | } | 3433 | } |
3427 | catch (Exception e) | 3434 | catch (Exception e) |
3428 | { | 3435 | { |
3429 | m_log.ErrorFormat("[CONNECTION BEGIN]: Exception verifying presence " + e.ToString()); | 3436 | m_log.ErrorFormat( |
3437 | "[CONNECTION BEGIN]: Exception verifying presence {0}{1}", e.Message, e.StackTrace); | ||
3430 | return false; | 3438 | return false; |
3431 | } | 3439 | } |
3432 | } | 3440 | } |
@@ -3443,7 +3451,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
3443 | } | 3451 | } |
3444 | catch (Exception e) | 3452 | catch (Exception e) |
3445 | { | 3453 | { |
3446 | m_log.ErrorFormat("[CONNECTION BEGIN]: Exception authorizing user " + e.ToString()); | 3454 | m_log.ErrorFormat( |
3455 | "[CONNECTION BEGIN]: Exception authorizing user {0}{1}", e.Message, e.StackTrace); | ||
3447 | return false; | 3456 | return false; |
3448 | } | 3457 | } |
3449 | 3458 | ||
@@ -3664,7 +3673,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3664 | } | 3673 | } |
3665 | } | 3674 | } |
3666 | else | 3675 | else |
3676 | { | ||
3667 | m_log.ErrorFormat("[CONNECTION BEGIN]: Estate Settings is null!"); | 3677 | m_log.ErrorFormat("[CONNECTION BEGIN]: Estate Settings is null!"); |
3678 | } | ||
3668 | 3679 | ||
3669 | IGroupsModule groupsModule = | 3680 | IGroupsModule groupsModule = |
3670 | RequestModuleInterface<IGroupsModule>(); | 3681 | RequestModuleInterface<IGroupsModule>(); |
@@ -3682,7 +3693,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3682 | agentGroups.Add(GroupMembership[i].GroupID); | 3693 | agentGroups.Add(GroupMembership[i].GroupID); |
3683 | } | 3694 | } |
3684 | else | 3695 | else |
3696 | { | ||
3685 | m_log.ErrorFormat("[CONNECTION BEGIN]: GroupMembership is null!"); | 3697 | m_log.ErrorFormat("[CONNECTION BEGIN]: GroupMembership is null!"); |
3698 | } | ||
3686 | } | 3699 | } |
3687 | 3700 | ||
3688 | bool groupAccess = false; | 3701 | bool groupAccess = false; |
@@ -3700,7 +3713,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3700 | } | 3713 | } |
3701 | } | 3714 | } |
3702 | else | 3715 | else |
3716 | { | ||
3703 | m_log.ErrorFormat("[CONNECTION BEGIN]: EstateGroups is null!"); | 3717 | m_log.ErrorFormat("[CONNECTION BEGIN]: EstateGroups is null!"); |
3718 | } | ||
3704 | 3719 | ||
3705 | if (!m_regInfo.EstateSettings.PublicAccess && | 3720 | if (!m_regInfo.EstateSettings.PublicAccess && |
3706 | !m_regInfo.EstateSettings.HasAccess(agent.AgentID) && | 3721 | !m_regInfo.EstateSettings.HasAccess(agent.AgentID) && |
@@ -3817,7 +3832,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3817 | } | 3832 | } |
3818 | catch (Exception e) | 3833 | catch (Exception e) |
3819 | { | 3834 | { |
3820 | m_log.ErrorFormat("[SCENE]: Unable to do agent crossing, exception {0}", e); | 3835 | m_log.ErrorFormat("[SCENE]: Unable to do agent crossing, exception {0}{1}", e.Message, e.StackTrace); |
3821 | } | 3836 | } |
3822 | } | 3837 | } |
3823 | else | 3838 | else |
@@ -4143,7 +4158,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4143 | /// <param name="cmdparams"></param> | 4158 | /// <param name="cmdparams"></param> |
4144 | public void HandleEditCommand(string[] cmdparams) | 4159 | public void HandleEditCommand(string[] cmdparams) |
4145 | { | 4160 | { |
4146 | m_log.Debug("Searching for Primitive: '" + cmdparams[2] + "'"); | 4161 | m_log.DebugFormat("Searching for Primitive: '{0}'", cmdparams[2]); |
4147 | 4162 | ||
4148 | EntityBase[] entityList = GetEntities(); | 4163 | EntityBase[] entityList = GetEntities(); |
4149 | foreach (EntityBase ent in entityList) | 4164 | foreach (EntityBase ent in entityList) |
@@ -4159,7 +4174,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
4159 | new Vector3(Convert.ToSingle(cmdparams[3]), Convert.ToSingle(cmdparams[4]), | 4174 | new Vector3(Convert.ToSingle(cmdparams[3]), Convert.ToSingle(cmdparams[4]), |
4160 | Convert.ToSingle(cmdparams[5]))); | 4175 | Convert.ToSingle(cmdparams[5]))); |
4161 | 4176 | ||
4162 | m_log.Debug("Edited scale of Primitive: " + part.Name); | 4177 | m_log.DebugFormat("Edited scale of Primitive: {0}", part.Name); |
4163 | } | 4178 | } |
4164 | } | 4179 | } |
4165 | } | 4180 | } |
@@ -4188,7 +4203,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
4188 | return LandChannel.GetLandObject((int)x, (int)y).LandData; | 4203 | return LandChannel.GetLandObject((int)x, (int)y).LandData; |
4189 | } | 4204 | } |
4190 | 4205 | ||
4191 | |||
4192 | #endregion | 4206 | #endregion |
4193 | 4207 | ||
4194 | #region Script Engine | 4208 | #region Script Engine |
@@ -4368,17 +4382,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
4368 | } | 4382 | } |
4369 | 4383 | ||
4370 | /// <summary> | 4384 | /// <summary> |
4371 | /// Returns true if scene presence is a child (no avatar in this scene) | ||
4372 | /// </summary> | ||
4373 | /// <param name="avatarID"></param> | ||
4374 | /// <returns></returns> | ||
4375 | public override bool PresenceChildStatus(UUID avatarID) | ||
4376 | { | ||
4377 | ScenePresence sp; | ||
4378 | return TryGetScenePresence(avatarID, out sp) && sp.IsChildAgent; | ||
4379 | } | ||
4380 | |||
4381 | /// <summary> | ||
4382 | /// Performs action on all avatars in the scene (root scene presences) | 4385 | /// Performs action on all avatars in the scene (root scene presences) |
4383 | /// Avatars may be an NPC or a 'real' client. | 4386 | /// Avatars may be an NPC or a 'real' client. |
4384 | /// </summary> | 4387 | /// </summary> |
diff --git a/OpenSim/Region/Framework/Scenes/SceneBase.cs b/OpenSim/Region/Framework/Scenes/SceneBase.cs index 84da700..da3b4dd 100644 --- a/OpenSim/Region/Framework/Scenes/SceneBase.cs +++ b/OpenSim/Region/Framework/Scenes/SceneBase.cs | |||
@@ -213,11 +213,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
213 | } | 213 | } |
214 | 214 | ||
215 | #region admin stuff | 215 | #region admin stuff |
216 | |||
217 | public virtual bool PresenceChildStatus(UUID avatarID) | ||
218 | { | ||
219 | return false; | ||
220 | } | ||
221 | 216 | ||
222 | public abstract void OtherRegionUp(GridRegion otherRegion); | 217 | public abstract void OtherRegionUp(GridRegion otherRegion); |
223 | 218 | ||
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index e2c6a08..5dda9e1 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -624,19 +624,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
624 | } | 624 | } |
625 | } | 625 | } |
626 | 626 | ||
627 | /// <summary> | 627 | public bool IsChildAgent { get; set; } |
628 | /// If this is true, agent doesn't have a representation in this scene. | ||
629 | /// this is an agent 'looking into' this scene from a nearby scene(region) | ||
630 | /// | ||
631 | /// if False, this agent has a representation in this scene | ||
632 | /// </summary> | ||
633 | private bool m_isChildAgent = true; | ||
634 | |||
635 | public bool IsChildAgent | ||
636 | { | ||
637 | get { return m_isChildAgent; } | ||
638 | set { m_isChildAgent = value; } | ||
639 | } | ||
640 | 628 | ||
641 | public uint ParentID | 629 | public uint ParentID |
642 | { | 630 | { |
@@ -753,6 +741,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
753 | { | 741 | { |
754 | AttachmentsSyncLock = new Object(); | 742 | AttachmentsSyncLock = new Object(); |
755 | 743 | ||
744 | IsChildAgent = true; | ||
756 | m_sendCourseLocationsMethod = SendCoarseLocationsDefault; | 745 | m_sendCourseLocationsMethod = SendCoarseLocationsDefault; |
757 | Animator = new ScenePresenceAnimator(this); | 746 | Animator = new ScenePresenceAnimator(this); |
758 | PresenceType = type; | 747 | PresenceType = type; |
diff --git a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs index 8f8124e..c754019 100644 --- a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs +++ b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs | |||
@@ -219,7 +219,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden | |||
219 | { | 219 | { |
220 | if (client is LLClientView) | 220 | if (client is LLClientView) |
221 | { | 221 | { |
222 | bool isChild = scene.PresenceChildStatus(client.AgentId); | 222 | bool isChild = client.SceneAgent.IsChildAgent; |
223 | if (isChild && !showChildren) | 223 | if (isChild && !showChildren) |
224 | return; | 224 | return; |
225 | 225 | ||
@@ -308,7 +308,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden | |||
308 | { | 308 | { |
309 | if (client is IStatsCollector) | 309 | if (client is IStatsCollector) |
310 | { | 310 | { |
311 | bool isChild = scene.PresenceChildStatus(client.AgentId); | 311 | bool isChild = client.SceneAgent.IsChildAgent; |
312 | if (isChild && !showChildren) | 312 | if (isChild && !showChildren) |
313 | return; | 313 | return; |
314 | 314 | ||
@@ -404,7 +404,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden | |||
404 | firstClient = false; | 404 | firstClient = false; |
405 | } | 405 | } |
406 | 406 | ||
407 | bool isChild = scene.PresenceChildStatus(client.AgentId); | 407 | bool isChild = client.SceneAgent.IsChildAgent; |
408 | if (isChild && !showChildren) | 408 | if (isChild && !showChildren) |
409 | return; | 409 | return; |
410 | 410 | ||
diff --git a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs index 89704d5..40cbc60 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Appearance/AppearanceInfoModule.cs | |||
@@ -53,7 +53,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Appearance | |||
53 | public const string SHOW_APPEARANCE_FORMAT = "{0,-9} {1}"; | 53 | public const string SHOW_APPEARANCE_FORMAT = "{0,-9} {1}"; |
54 | 54 | ||
55 | private Dictionary<UUID, Scene> m_scenes = new Dictionary<UUID, Scene>(); | 55 | private Dictionary<UUID, Scene> m_scenes = new Dictionary<UUID, Scene>(); |
56 | private IAvatarFactoryModule m_avatarFactory; | 56 | // private IAvatarFactoryModule m_avatarFactory; |
57 | 57 | ||
58 | public string Name { get { return "Appearance Information Module"; } } | 58 | public string Name { get { return "Appearance Information Module"; } } |
59 | 59 | ||