diff options
Diffstat (limited to '')
3 files changed, 24 insertions, 18 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs index 150d913..09b4ba6 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs | |||
@@ -122,7 +122,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
122 | 122 | ||
123 | scene.AddCommand( | 123 | scene.AddCommand( |
124 | this, "save iar", | 124 | this, "save iar", |
125 | "save iar [-h|--home=<url>] [--noassets] <first> <last> <inventory path> <password> [<IAR path>] [--v|-verbose]", | 125 | "save iar [-p|--profile=<url>] [--noassets] <first> <last> <inventory path> <password> [<IAR path>] [-c|--creators] [-v|--verbose]", |
126 | "Save user inventory archive (IAR).", | 126 | "Save user inventory archive (IAR).", |
127 | "<first> is the user's first name." + Environment.NewLine | 127 | "<first> is the user's first name." + Environment.NewLine |
128 | + "<last> is the user's last name." + Environment.NewLine | 128 | + "<last> is the user's last name." + Environment.NewLine |
@@ -408,7 +408,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
408 | if (mainParams.Count < 6) | 408 | if (mainParams.Count < 6) |
409 | { | 409 | { |
410 | m_log.Error( | 410 | m_log.Error( |
411 | "[INVENTORY ARCHIVER]: usage is save iar [--p|-profile=<url>] [--noassets] <first name> <last name> <inventory path> <user password> [<save file path>]"); | 411 | "[INVENTORY ARCHIVER]: usage is save iar [-p|--profile=<url>] [--noassets] <first name> <last name> <inventory path> <user password> [<save file path>] [-c|--creators] [-v|--verbose]"); |
412 | return; | 412 | return; |
413 | } | 413 | } |
414 | 414 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 9b660b6..27bcc09 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2729,7 +2729,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2729 | if (ParentGroup == null) | 2729 | if (ParentGroup == null) |
2730 | return; | 2730 | return; |
2731 | 2731 | ||
2732 | ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | 2732 | // When running OpenSim tests, Scene (and EventManager can be null). |
2733 | // Need to fix tests before we can trigger this here | ||
2734 | // ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | ||
2733 | 2735 | ||
2734 | ParentGroup.QueueForUpdateCheck(); | 2736 | ParentGroup.QueueForUpdateCheck(); |
2735 | 2737 | ||
@@ -2763,7 +2765,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2763 | if (ParentGroup == null) | 2765 | if (ParentGroup == null) |
2764 | return; | 2766 | return; |
2765 | 2767 | ||
2766 | ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | 2768 | // When running OpenSim tests, Scene (and EventManager can be null). |
2769 | // Need to fix tests before we can trigger this here | ||
2770 | // ParentGroup.Scene.EventManager.TriggerSceneObjectPartUpdated(this); | ||
2767 | 2771 | ||
2768 | // This was pulled from SceneViewer. Attachments always receive full updates. | 2772 | // This was pulled from SceneViewer. Attachments always receive full updates. |
2769 | // I could not verify if this is a requirement but this maintains existing behavior | 2773 | // I could not verify if this is a requirement but this maintains existing behavior |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs index 3831d7a..6a48b89 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | |||
@@ -140,24 +140,26 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
140 | // acd.AgentID, i, acd.Appearance.Texture.FaceTextures[i]); | 140 | // acd.AgentID, i, acd.Appearance.Texture.FaceTextures[i]); |
141 | // } | 141 | // } |
142 | 142 | ||
143 | scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd); | 143 | lock (m_avatars) |
144 | scene.AddNewClient(npcAvatar, PresenceType.Npc); | ||
145 | |||
146 | ScenePresence sp; | ||
147 | if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) | ||
148 | { | 144 | { |
149 | m_log.DebugFormat( | 145 | scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd); |
150 | "[NPC MODULE]: Successfully retrieved scene presence for NPC {0} {1}", sp.Name, sp.UUID); | 146 | scene.AddNewClient(npcAvatar, PresenceType.Npc); |
151 | 147 | ||
152 | sp.CompleteMovement(npcAvatar, false); | 148 | ScenePresence sp; |
153 | } | 149 | if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) |
154 | else | 150 | { |
155 | { | 151 | m_log.DebugFormat( |
156 | m_log.WarnFormat("[NPC MODULE]: Could not find scene presence for NPC {0} {1}", sp.Name, sp.UUID); | 152 | "[NPC MODULE]: Successfully retrieved scene presence for NPC {0} {1}", sp.Name, sp.UUID); |
157 | } | 153 | |
154 | sp.CompleteMovement(npcAvatar, false); | ||
155 | } | ||
156 | else | ||
157 | { | ||
158 | m_log.WarnFormat("[NPC MODULE]: Could not find scene presence for NPC {0} {1}", sp.Name, sp.UUID); | ||
159 | } | ||
158 | 160 | ||
159 | lock (m_avatars) | ||
160 | m_avatars.Add(npcAvatar.AgentId, npcAvatar); | 161 | m_avatars.Add(npcAvatar.AgentId, npcAvatar); |
162 | } | ||
161 | 163 | ||
162 | m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId); | 164 | m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId); |
163 | 165 | ||