Don't try to save a NPCs attachment states on NPC delete
parent
58cb7cd084
commit
6f19e231b6
|
@ -462,6 +462,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