mantis 9230: flag need for prims inventory saves in more 9un0link cases

This commit is contained in:
UbitUmarov
2026-01-24 21:40:00 +00:00
parent b9023bb3b6
commit 25ad17d068
6 changed files with 16 additions and 7 deletions

View File

@@ -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)
{