diff options
author | Teravus Ovares | 2008-05-16 23:11:00 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-05-16 23:11:00 +0000 |
commit | aa5197304e2bb8c6b2f7bf3c8e86256042cf23b8 (patch) | |
tree | c55e7c94e4978bbc073947da44b383c692d8f5c6 /OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |
parent | minor change to justin's previous fix that should still (diff) | |
download | opensim-SC_OLD-aa5197304e2bb8c6b2f7bf3c8e86256042cf23b8.zip opensim-SC_OLD-aa5197304e2bb8c6b2f7bf3c8e86256042cf23b8.tar.gz opensim-SC_OLD-aa5197304e2bb8c6b2f7bf3c8e86256042cf23b8.tar.bz2 opensim-SC_OLD-aa5197304e2bb8c6b2f7bf3c8e86256042cf23b8.tar.xz |
* Committing patch from mantis 0001297: [PATCH] Fix behavior of child prim inventories. Also enables 'New Script' button. from Melanie. Thanks Melanie!
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 80b93b1..a7b7692 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -759,7 +759,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
759 | public SceneObjectPart() | 759 | public SceneObjectPart() |
760 | { | 760 | { |
761 | // It's not necessary to persist this | 761 | // It's not necessary to persist this |
762 | m_inventoryFileName = "inventory_" + LLUUID.Random().ToString() + ".tmp"; | ||
763 | m_TextureAnimation = new byte[0]; | 762 | m_TextureAnimation = new byte[0]; |
764 | } | 763 | } |
765 | 764 | ||
@@ -808,7 +807,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
808 | AngularVelocity = new LLVector3(0, 0, 0); | 807 | AngularVelocity = new LLVector3(0, 0, 0); |
809 | Acceleration = new LLVector3(0, 0, 0); | 808 | Acceleration = new LLVector3(0, 0, 0); |
810 | m_TextureAnimation = new byte[0]; | 809 | m_TextureAnimation = new byte[0]; |
811 | m_inventoryFileName = "inventory_" + LLUUID.Random().ToString() + ".tmp"; | ||
812 | 810 | ||
813 | // Prims currently only contain a single folder (Contents). From looking at the Second Life protocol, | 811 | // Prims currently only contain a single folder (Contents). From looking at the Second Life protocol, |
814 | // this appears to have the same UUID (!) as the prim. If this isn't the case, one can't drag items from | 812 | // this appears to have the same UUID (!) as the prim. If this isn't the case, one can't drag items from |
@@ -2530,7 +2528,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2530 | throw new ArgumentNullException("info"); | 2528 | throw new ArgumentNullException("info"); |
2531 | } | 2529 | } |
2532 | 2530 | ||
2533 | info.AddValue("m_inventoryFileName", m_inventoryFileName); | 2531 | info.AddValue("m_inventoryFileName", GetInventoryFileName()); |
2534 | info.AddValue("m_folderID", UUID); | 2532 | info.AddValue("m_folderID", UUID); |
2535 | info.AddValue("PhysActor", PhysActor); | 2533 | info.AddValue("PhysActor", PhysActor); |
2536 | 2534 | ||
@@ -2758,5 +2756,17 @@ namespace OpenSim.Region.Environment.Scenes | |||
2758 | 2756 | ||
2759 | return m_parentGroup.RootPart.DIE_AT_EDGE; | 2757 | return m_parentGroup.RootPart.DIE_AT_EDGE; |
2760 | } | 2758 | } |
2759 | |||
2760 | public void GetProperties(IClientAPI client) | ||
2761 | { | ||
2762 | |||
2763 | client.SendObjectPropertiesReply(LLUUID.Zero, (ulong)CreationDate, CreatorID, LLUUID.Zero, LLUUID.Zero, | ||
2764 | LLUUID.Zero, (short)InventorySerial, LastOwnerID, UUID, OwnerID, | ||
2765 | ParentGroup.RootPart.TouchName, new byte[0], ParentGroup.RootPart.SitName, Name, Description, | ||
2766 | ParentGroup.RootPart.OwnerMask, ParentGroup.RootPart.NextOwnerMask, ParentGroup.RootPart.GroupMask, ParentGroup.RootPart.EveryoneMask, | ||
2767 | ParentGroup.RootPart.BaseMask); | ||
2768 | |||
2769 | } | ||
2770 | |||
2761 | } | 2771 | } |
2762 | } | 2772 | } |