mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
* Store task inventory when an object is taken into agent inventory
* This means that you can take an object from a region and rez it somewhere else, with its inventory intact. * As for earlier, at this stage only scripts can be placed in inventory * This isn't an efficient implementation, a better one will probably need to come along soonish
This commit is contained in:
@@ -609,15 +609,19 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
SetPartAsNonRoot(newPart);
|
||||
}
|
||||
|
||||
|
||||
public void GenerateNewIDs()
|
||||
/// <summary>
|
||||
/// Reset the LLUUIDs for all the prims that make up this group.
|
||||
///
|
||||
/// This is called by methods which want to add a new group to an existing scene, in order
|
||||
/// to ensure that there are no clashes with groups already present.
|
||||
/// </summary>
|
||||
public void ResetIDs()
|
||||
{
|
||||
List<SceneObjectPart> partsList = new List<SceneObjectPart>(m_parts.Values);
|
||||
m_parts.Clear();
|
||||
foreach (SceneObjectPart part in partsList)
|
||||
{
|
||||
part.UUID = LLUUID.Random();
|
||||
part.LinkNum = m_parts.Count;
|
||||
part.ResetIDs(m_parts.Count);
|
||||
m_parts.Add(part.UUID, part);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user