return bbox and offsetHeight to RezObject
parent
07074d068b
commit
b4a91f5dde
|
@ -246,7 +246,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
|||
/// <param name="objlist">The scene objects</param>
|
||||
/// <param name="veclist">Relative offsets for each object</param>
|
||||
/// <returns>true = success, false = the scene object asset couldn't be found</returns>
|
||||
bool GetRezReadySceneObjects(TaskInventoryItem item, out List<SceneObjectGroup> objlist, out List<Vector3> veclist);
|
||||
bool GetRezReadySceneObjects(TaskInventoryItem item, out List<SceneObjectGroup> objlist, out List<Vector3> veclist, out Vector3 bbox, out float offsetHeight);
|
||||
|
||||
/// <summary>
|
||||
/// Update an existing inventory item.
|
||||
|
|
|
@ -2470,8 +2470,10 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
List<SceneObjectGroup> objlist;
|
||||
List<Vector3> veclist;
|
||||
|
||||
bool success = sourcePart.Inventory.GetRezReadySceneObjects(item, out objlist, out veclist);
|
||||
Vector3 bbox;
|
||||
float offsetHeight;
|
||||
|
||||
bool success = sourcePart.Inventory.GetRezReadySceneObjects(item, out objlist, out veclist,out bbox, out offsetHeight);
|
||||
if (!success)
|
||||
return null;
|
||||
|
||||
|
|
|
@ -871,7 +871,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
return items;
|
||||
}
|
||||
|
||||
public bool GetRezReadySceneObjects(TaskInventoryItem item, out List<SceneObjectGroup> objlist, out List<Vector3> veclist)
|
||||
public bool GetRezReadySceneObjects(TaskInventoryItem item, out List<SceneObjectGroup> objlist, out List<Vector3> veclist, out Vector3 bbox, out float offsetHeight)
|
||||
{
|
||||
AssetBase rezAsset = m_part.ParentGroup.Scene.AssetService.Get(item.AssetID.ToString());
|
||||
|
||||
|
@ -882,12 +882,11 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
item.AssetID, item.Name, m_part.Name);
|
||||
objlist = null;
|
||||
veclist = null;
|
||||
bbox = Vector3.Zero;
|
||||
offsetHeight = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
Vector3 bbox;
|
||||
float offsetHeight;
|
||||
|
||||
|
||||
bool single = m_part.ParentGroup.Scene.GetObjectsToRez(rezAsset.Data, false, out objlist, out veclist, out bbox, out offsetHeight);
|
||||
|
||||
for (int i = 0; i < objlist.Count; i++)
|
||||
|
|
Loading…
Reference in New Issue