* Fix probable partial breakage of delete to inventory in last commit

* Not nulling out parts and the root part allows the code to be simplified
0.6.1-post-fixes
Justin Clarke Casey 2008-11-17 15:52:27 +00:00
parent d54b6608a7
commit f16cf12840
2 changed files with 10 additions and 16 deletions

View File

@ -126,8 +126,7 @@ namespace OpenSim.Region.Environment.Scenes
"[SCENE]: Sending deleted object to user's inventory, {0} item(s) remaining.", left);
x = m_inventoryDeletes.Dequeue();
if (!x.objectGroup.IsDeleted)
{
try
{
m_scene.DeleteToInventory(x.destination,
@ -138,7 +137,6 @@ namespace OpenSim.Region.Environment.Scenes
{
m_log.DebugFormat("Exception background deleting object: "+e.ToString());
}
}
return true;
}

View File

@ -1764,10 +1764,6 @@ namespace OpenSim.Region.Environment.Scenes
}
}
// Finally remove the item, for reals this time.
if (permissionToDelete)
DeleteSceneObject(objectGroup, false);
return assetID;
}