Stop serializing and storing assets for objects that were never rezzed from inventory items.
parent
3637280aad
commit
8f668ec888
|
@ -775,6 +775,18 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If this didn't come from inventory, it also shouldn't go there
|
||||||
|
// on detach. It's likely a temp attachment.
|
||||||
|
if (so.FromItemID != UUID.Zero)
|
||||||
|
{
|
||||||
|
sp.RemoveAttachment(so);
|
||||||
|
m_scene.DeleteSceneObject(so, false, false);
|
||||||
|
so.RemoveScriptInstances(true);
|
||||||
|
so.Clear();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (DebugLevel > 0)
|
if (DebugLevel > 0)
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[ATTACHMENTS MODULE]: Detaching object {0} {1} (FromItemID {2}) for {3} in {4}",
|
"[ATTACHMENTS MODULE]: Detaching object {0} {1} (FromItemID {2}) for {3} in {4}",
|
||||||
|
|
Loading…
Reference in New Issue