Fix child prims returning after being unlinked and deleted where the root is
not deletedavinationmerge
parent
82e534a029
commit
893915ce0b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue