Set group on newly rezzed objects to the rezzer's (or rezzing object's)

group
This commit is contained in:
Melanie Thielker
2008-11-17 21:44:09 +00:00
parent 93b18d7323
commit a8e40bed52
4 changed files with 28 additions and 1 deletions

View File

@@ -123,6 +123,28 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public void ChangeInventoryGroup(UUID groupID)
{
lock (TaskInventory)
{
if (0 == TaskInventory.Count)
{
return;
}
HasInventoryChanged = true;
ParentGroup.HasGroupChanged = true;
IList<TaskInventoryItem> items = new List<TaskInventoryItem>(TaskInventory.Values);
foreach (TaskInventoryItem item in items)
{
if (groupID != item.GroupID)
{
item.GroupID = groupID;
}
}
}
}
/// <summary>
/// Start all the scripts contained in this prim's inventory
/// </summary>