diff options
author | UbitUmarov | 2014-11-19 16:43:56 +0000 |
---|---|---|
committer | UbitUmarov | 2014-11-19 16:43:56 +0000 |
commit | b4a91f5dde928154675da227ae70444bdc12a8bc (patch) | |
tree | dd2924969c7ebf99a4d4d1b5af5b23a4ec0f1004 | |
parent | dont do recoil on llRezObject called from attachments, as seem to happen (diff) | |
download | opensim-SC-b4a91f5dde928154675da227ae70444bdc12a8bc.zip opensim-SC-b4a91f5dde928154675da227ae70444bdc12a8bc.tar.gz opensim-SC-b4a91f5dde928154675da227ae70444bdc12a8bc.tar.bz2 opensim-SC-b4a91f5dde928154675da227ae70444bdc12a8bc.tar.xz |
return bbox and offsetHeight to RezObject
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IEntityInventory.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 9 |
3 files changed, 9 insertions, 8 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs b/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs index eba881f..b85fd8b 100644 --- a/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs +++ b/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs | |||
@@ -246,7 +246,7 @@ namespace OpenSim.Region.Framework.Interfaces | |||
246 | /// <param name="objlist">The scene objects</param> | 246 | /// <param name="objlist">The scene objects</param> |
247 | /// <param name="veclist">Relative offsets for each object</param> | 247 | /// <param name="veclist">Relative offsets for each object</param> |
248 | /// <returns>true = success, false = the scene object asset couldn't be found</returns> | 248 | /// <returns>true = success, false = the scene object asset couldn't be found</returns> |
249 | bool GetRezReadySceneObjects(TaskInventoryItem item, out List<SceneObjectGroup> objlist, out List<Vector3> veclist); | 249 | bool GetRezReadySceneObjects(TaskInventoryItem item, out List<SceneObjectGroup> objlist, out List<Vector3> veclist, out Vector3 bbox, out float offsetHeight); |
250 | 250 | ||
251 | /// <summary> | 251 | /// <summary> |
252 | /// Update an existing inventory item. | 252 | /// Update an existing inventory item. |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 746a5ce..abf19d8 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -2470,8 +2470,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2470 | 2470 | ||
2471 | List<SceneObjectGroup> objlist; | 2471 | List<SceneObjectGroup> objlist; |
2472 | List<Vector3> veclist; | 2472 | List<Vector3> veclist; |
2473 | 2473 | Vector3 bbox; | |
2474 | bool success = sourcePart.Inventory.GetRezReadySceneObjects(item, out objlist, out veclist); | 2474 | float offsetHeight; |
2475 | |||
2476 | bool success = sourcePart.Inventory.GetRezReadySceneObjects(item, out objlist, out veclist,out bbox, out offsetHeight); | ||
2475 | if (!success) | 2477 | if (!success) |
2476 | return null; | 2478 | return null; |
2477 | 2479 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index 2fa9139..b9f3f94 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -871,7 +871,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
871 | return items; | 871 | return items; |
872 | } | 872 | } |
873 | 873 | ||
874 | public bool GetRezReadySceneObjects(TaskInventoryItem item, out List<SceneObjectGroup> objlist, out List<Vector3> veclist) | 874 | public bool GetRezReadySceneObjects(TaskInventoryItem item, out List<SceneObjectGroup> objlist, out List<Vector3> veclist, out Vector3 bbox, out float offsetHeight) |
875 | { | 875 | { |
876 | AssetBase rezAsset = m_part.ParentGroup.Scene.AssetService.Get(item.AssetID.ToString()); | 876 | AssetBase rezAsset = m_part.ParentGroup.Scene.AssetService.Get(item.AssetID.ToString()); |
877 | 877 | ||
@@ -882,12 +882,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
882 | item.AssetID, item.Name, m_part.Name); | 882 | item.AssetID, item.Name, m_part.Name); |
883 | objlist = null; | 883 | objlist = null; |
884 | veclist = null; | 884 | veclist = null; |
885 | bbox = Vector3.Zero; | ||
886 | offsetHeight = 0; | ||
885 | return false; | 887 | return false; |
886 | } | 888 | } |
887 | 889 | ||
888 | Vector3 bbox; | ||
889 | float offsetHeight; | ||
890 | |||
891 | bool single = m_part.ParentGroup.Scene.GetObjectsToRez(rezAsset.Data, false, out objlist, out veclist, out bbox, out offsetHeight); | 890 | bool single = m_part.ParentGroup.Scene.GetObjectsToRez(rezAsset.Data, false, out objlist, out veclist, out bbox, out offsetHeight); |
892 | 891 | ||
893 | for (int i = 0; i < objlist.Count; i++) | 892 | for (int i = 0; i < objlist.Count; i++) |