mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
mantis 9230: flag need for prims inventory saves in more 9un0link cases
This commit is contained in:
@@ -3462,6 +3462,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
// Single prim left
|
||||
RootPart.LinkNum = 0;
|
||||
RootPart.Inventory?.ForceInventoryPersistence(); // TODO remove need for this
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3470,6 +3471,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
SceneObjectPart part = parts[i];
|
||||
if (part.LinkNum > linkPart.LinkNum)
|
||||
part.LinkNum--;
|
||||
part.Inventory?.ForceInventoryPersistence(); // TODO remove need for this
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3519,7 +3521,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (m_rootPart.PhysActor is not null)
|
||||
m_rootPart.PhysActor.Building = false;
|
||||
|
||||
linkPart.Inventory.ForceInventoryPersistence();
|
||||
linkPart.Inventory.ForceInventoryPersistence(); // TODO remove need for this
|
||||
|
||||
if (sendEvents)
|
||||
linkPart.TriggerScriptChangedEvent(Changed.LINK);
|
||||
@@ -4044,6 +4046,13 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
RootPart.ScheduleFullUpdate();
|
||||
}
|
||||
|
||||
public void SetPartsInventoryChanged()
|
||||
{
|
||||
SceneObjectPart[] parts = m_parts.GetArray();
|
||||
for (int i = 0; i < parts.Length; i++)
|
||||
parts[i].Inventory?.ForceInventoryPersistence();
|
||||
}
|
||||
|
||||
public void UpdatePermissions(UUID AgentID, byte field, uint localID,
|
||||
uint mask, byte addRemTF)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user