aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-09-07 03:41:29 +0100
committerJustin Clark-Casey (justincc)2010-09-07 03:41:29 +0100
commitf7b28dd32155eac2d55ccf0757b059794d6b5f67 (patch)
treedaba1307fa62acc66a74fb15ca621e32ed24c98b /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parentminor: comment out some excessive test logging (diff)
downloadopensim-SC-f7b28dd32155eac2d55ccf0757b059794d6b5f67.zip
opensim-SC-f7b28dd32155eac2d55ccf0757b059794d6b5f67.tar.gz
opensim-SC-f7b28dd32155eac2d55ccf0757b059794d6b5f67.tar.bz2
opensim-SC-f7b28dd32155eac2d55ccf0757b059794d6b5f67.tar.xz
If a scene object part UUID is changed (only possible when not in a scene), then adjust the inventory items to point to the new uuid as well
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 3ed74e1..3753dcb 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -494,7 +494,14 @@ namespace OpenSim.Region.Framework.Scenes
494 public UUID UUID 494 public UUID UUID
495 { 495 {
496 get { return m_uuid; } 496 get { return m_uuid; }
497 set { m_uuid = value; } 497 set
498 {
499 m_uuid = value;
500
501 // This is necessary so that TaskInventoryItem parent ids correctly reference the new uuid of this part
502 if (Inventory != null)
503 Inventory.ResetInventoryIDs();
504 }
498 } 505 }
499 506
500 public uint LocalId 507 public uint LocalId
@@ -2756,7 +2763,6 @@ namespace OpenSim.Region.Framework.Scenes
2756 UUID = UUID.Random(); 2763 UUID = UUID.Random();
2757 LinkNum = linkNum; 2764 LinkNum = linkNum;
2758 LocalId = 0; 2765 LocalId = 0;
2759 Inventory.ResetInventoryIDs();
2760 } 2766 }
2761 2767
2762 /// <summary> 2768 /// <summary>