diff options
author | Tom | 2010-08-06 08:09:10 -0700 |
---|---|---|
committer | Tom | 2010-08-06 08:09:10 -0700 |
commit | 0d4086e6025d2d6ccbf1339a22a443eb746e834f (patch) | |
tree | 5a9c8a75ec34ccdea292cbc947655d36cd4eb09e | |
parent | Since i've narrowed the fault down to one function, add some spammy debug to ... (diff) | |
parent | Change XEngine to use the new constant (diff) | |
download | opensim-SC-0d4086e6025d2d6ccbf1339a22a443eb746e834f.zip opensim-SC-0d4086e6025d2d6ccbf1339a22a443eb746e834f.tar.gz opensim-SC-0d4086e6025d2d6ccbf1339a22a443eb746e834f.tar.bz2 opensim-SC-0d4086e6025d2d6ccbf1339a22a443eb746e834f.tar.xz |
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to '')
3 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index dcbe0c4..b4da246 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -388,7 +388,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
388 | PostEvent(new EventParams("attach", | 388 | PostEvent(new EventParams("attach", |
389 | new object[] { new LSL_Types.LSLString(m_AttachedAvatar.ToString()) }, new DetectParams[0])); | 389 | new object[] { new LSL_Types.LSLString(m_AttachedAvatar.ToString()) }, new DetectParams[0])); |
390 | } | 390 | } |
391 | else if (m_stateSource == StateSource.NewRez) | 391 | else if (m_stateSource == StateSource.RegionStart) |
392 | { | 392 | { |
393 | // m_log.Debug("[Script] Posted changed(CHANGED_REGION_RESTART) to script"); | 393 | // m_log.Debug("[Script] Posted changed(CHANGED_REGION_RESTART) to script"); |
394 | PostEvent(new EventParams("changed", | 394 | PostEvent(new EventParams("changed", |
diff --git a/OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs b/OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs index ac6a3ab..e3d30e5 100644 --- a/OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs +++ b/OpenSim/Server/Handlers/Inventory/XInventoryInConnector.cs | |||
@@ -408,6 +408,7 @@ namespace OpenSim.Server.Handlers.Asset | |||
408 | 408 | ||
409 | byte[] HandlePurgeFolder(Dictionary<string,object> request) | 409 | byte[] HandlePurgeFolder(Dictionary<string,object> request) |
410 | { | 410 | { |
411 | |||
411 | Dictionary<string,object> result = new Dictionary<string,object>(); | 412 | Dictionary<string,object> result = new Dictionary<string,object>(); |
412 | UUID folderID = UUID.Zero; | 413 | UUID folderID = UUID.Zero; |
413 | UUID.TryParse(request["ID"].ToString(), out folderID); | 414 | UUID.TryParse(request["ID"].ToString(), out folderID); |
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs index f581f76..26c5b33 100644 --- a/OpenSim/Services/InventoryService/XInventoryService.cs +++ b/OpenSim/Services/InventoryService/XInventoryService.cs | |||
@@ -342,7 +342,6 @@ namespace OpenSim.Services.InventoryService | |||
342 | m_Database.DeleteFolders("folderID", x.folderID.ToString()); | 342 | m_Database.DeleteFolders("folderID", x.folderID.ToString()); |
343 | } | 343 | } |
344 | 344 | ||
345 | m_Database.DeleteItems("parentFolderID", folder.ID.ToString()); | ||
346 | 345 | ||
347 | return true; | 346 | return true; |
348 | } | 347 | } |
@@ -542,6 +541,9 @@ namespace OpenSim.Services.InventoryService | |||
542 | if (folder.Length < 1) | 541 | if (folder.Length < 1) |
543 | return false; | 542 | return false; |
544 | 543 | ||
544 | if (folder[0].type == (int)AssetType.TrashFolder) | ||
545 | return true; | ||
546 | |||
545 | UUID parentFolder = folder[0].parentFolderID; | 547 | UUID parentFolder = folder[0].parentFolderID; |
546 | 548 | ||
547 | while (parentFolder != UUID.Zero) | 549 | while (parentFolder != UUID.Zero) |