aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMelanie2010-10-29 18:59:53 +0200
committerMelanie2010-10-29 18:59:53 +0200
commite6a8d2872c3ff4992cd7e9615f69e0c6773e461f (patch)
tree7630a500e3e649c791462f784de41108d2a2d7b1 /OpenSim/Region
parentFix attached sounds from HUDs erroneously being delivered to other avatars (diff)
downloadopensim-SC-e6a8d2872c3ff4992cd7e9615f69e0c6773e461f.zip
opensim-SC-e6a8d2872c3ff4992cd7e9615f69e0c6773e461f.tar.gz
opensim-SC-e6a8d2872c3ff4992cd7e9615f69e0c6773e461f.tar.bz2
opensim-SC-e6a8d2872c3ff4992cd7e9615f69e0c6773e461f.tar.xz
Preliminary work on appearance layers. No user functionality yet.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs12
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs11
2 files changed, 16 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index d429979..0700aa5 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -762,10 +762,14 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
762 // affect the name stored in the serialization, transfer 762 // affect the name stored in the serialization, transfer
763 // the correct name from the inventory to the 763 // the correct name from the inventory to the
764 // object itself before we rez. 764 // object itself before we rez.
765 rootPart.Name = item.Name; 765 // On coalesced objects, this has no effect.
766 rootPart.Description = item.Description; 766 if ((item.Flags & (uint)InventoryItemFlags.ObjectHasMultipleItems) == 0)
767 rootPart.ObjectSaleType = item.SaleType; 767 {
768 rootPart.SalePrice = item.SalePrice; 768 rootPart.Name = item.Name;
769 rootPart.Description = item.Description;
770 rootPart.ObjectSaleType = item.SaleType;
771 rootPart.SalePrice = item.SalePrice;
772 }
769 773
770 group.SetGroup(remoteClient.ActiveGroupId, remoteClient); 774 group.SetGroup(remoteClient.ActiveGroupId, remoteClient);
771 if ((rootPart.OwnerID != item.Owner) || 775 if ((rootPart.OwnerID != item.Owner) ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 2527757..8f05359 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2187,9 +2187,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2187 m_host.AddScriptLPS(1); 2187 m_host.AddScriptLPS(1);
2188 2188
2189 // try to let this work as in SL... 2189 // try to let this work as in SL...
2190 if (m_host.ParentID == 0) 2190 if (m_host.LinkNum < 2)
2191 { 2191 {
2192 // special case: If we are root, rotate complete SOG to new rotation 2192 // Special case: If we are root, rotate complete SOG to new
2193 // rotation.
2194 // We are root if the link number is 0 (single prim) or 1
2195 // (root prim). ParentID may be nonzero in attachments and
2196 // using it would cause attachments and HUDs to rotate
2197 // to the wrong positions.
2193 SetRot(m_host, Rot2Quaternion(rot)); 2198 SetRot(m_host, Rot2Quaternion(rot));
2194 } 2199 }
2195 else 2200 else