diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 93073c1..7866739 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -952,10 +952,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
952 | #region Copying | 952 | #region Copying |
953 | 953 | ||
954 | /// <summary> | 954 | /// <summary> |
955 | /// | 955 | /// Duplicates this part. |
956 | /// </summary> | 956 | /// </summary> |
957 | /// <returns></returns> | 957 | /// <returns></returns> |
958 | public SceneObjectPart Copy(uint localID, LLUUID AgentID, LLUUID GroupID) | 958 | public SceneObjectPart Copy(uint localID, LLUUID AgentID, LLUUID GroupID, int linkNum) |
959 | { | 959 | { |
960 | SceneObjectPart dupe = (SceneObjectPart) MemberwiseClone(); | 960 | SceneObjectPart dupe = (SceneObjectPart) MemberwiseClone(); |
961 | dupe.m_shape = m_shape.Copy(); | 961 | dupe.m_shape = m_shape.Copy(); |
@@ -977,6 +977,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
977 | dupe.ObjectSaleType = ObjectSaleType; | 977 | dupe.ObjectSaleType = ObjectSaleType; |
978 | dupe.SalePrice = SalePrice; | 978 | dupe.SalePrice = SalePrice; |
979 | dupe.Category = Category; | 979 | dupe.Category = Category; |
980 | |||
981 | dupe.TaskInventory = (TaskInventoryDictionary)dupe.TaskInventory.Clone(); | ||
982 | |||
983 | dupe.ResetIDs(linkNum); | ||
980 | 984 | ||
981 | // This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated. | 985 | // This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated. |
982 | dupe.LastOwnerID = ObjectOwner; | 986 | dupe.LastOwnerID = ObjectOwner; |