Don't try to save a NPCs attachment states on NPC delete
parent
69c0f252a4
commit
efe51fd5cb
|
@ -468,6 +468,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
/// <param name="grp"></param>
|
/// <param name="grp"></param>
|
||||||
private void UpdateKnownItem(IScenePresence sp, SceneObjectGroup grp)
|
private void UpdateKnownItem(IScenePresence sp, SceneObjectGroup grp)
|
||||||
{
|
{
|
||||||
|
// Saving attachments for NPCs messes them up for the real owner!
|
||||||
|
INPCModule module = m_scene.RequestModuleInterface<INPCModule>();
|
||||||
|
if (module != null)
|
||||||
|
{
|
||||||
|
if (module.IsNPC(sp.UUID, m_scene))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (grp.HasGroupChanged || grp.ContainsScripts())
|
if (grp.HasGroupChanged || grp.ContainsScripts())
|
||||||
{
|
{
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
|
|
Loading…
Reference in New Issue