Fix child prims returning after being unlinked and deleted where the root is

not deleted
avinationmerge
Melanie 2010-11-04 21:09:59 +01:00
parent 82e534a029
commit 893915ce0b
1 changed files with 5 additions and 0 deletions

View File

@ -1760,6 +1760,11 @@ namespace OpenSim.Region.Framework.Scenes
// //
foreach (SceneObjectGroup g in affectedGroups) foreach (SceneObjectGroup g in affectedGroups)
{ {
// Child prims that have been unlinked and deleted will
// return unless the root is deleted. This will remove them
// from the database. They will be rewritten immediately,
// minus the rows for the unlinked child prims.
m_parentScene.SimulationDataService.RemoveObject(g.UUID, m_parentScene.RegionInfo.RegionID);
g.TriggerScriptChangedEvent(Changed.LINK); g.TriggerScriptChangedEvent(Changed.LINK);
g.HasGroupChanged = true; // Persist g.HasGroupChanged = true; // Persist
g.areUpdatesSuspended = false; g.areUpdatesSuspended = false;