mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Set group on newly rezzed objects to the rezzer's (or rezzing object's)
group
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user