Fix a regression that causes data from the attachments module to fail loading
parent
db98698bbe
commit
323ffd7a89
|
@ -755,6 +755,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
if (tainted)
|
if (tainted)
|
||||||
objatt.HasGroupChanged = true;
|
objatt.HasGroupChanged = true;
|
||||||
|
|
||||||
|
if (doc != null)
|
||||||
|
{
|
||||||
|
objatt.LoadScriptState(doc);
|
||||||
|
objatt.ResetOwnerChangeFlag();
|
||||||
|
}
|
||||||
|
|
||||||
// Fire after attach, so we don't get messy perms dialogs
|
// Fire after attach, so we don't get messy perms dialogs
|
||||||
// 4 == AttachedRez
|
// 4 == AttachedRez
|
||||||
objatt.CreateScriptInstances(0, true, m_scene.DefaultScriptEngine, 4);
|
objatt.CreateScriptInstances(0, true, m_scene.DefaultScriptEngine, 4);
|
||||||
|
@ -771,20 +777,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
"[ATTACHMENTS MODULE]: Could not retrieve item {0} for attaching to avatar {1} at point {2}",
|
"[ATTACHMENTS MODULE]: Could not retrieve item {0} for attaching to avatar {1} at point {2}",
|
||||||
itemID, sp.Name, attachmentPt);
|
itemID, sp.Name, attachmentPt);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doc != null)
|
|
||||||
{
|
|
||||||
objatt.LoadScriptState(doc);
|
|
||||||
objatt.ResetOwnerChangeFlag();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fire after attach, so we don't get messy perms dialogs
|
|
||||||
// 4 == AttachedRez
|
|
||||||
objatt.CreateScriptInstances(0, true, m_scene.DefaultScriptEngine, 4);
|
|
||||||
objatt.ResumeScripts();
|
|
||||||
|
|
||||||
// Do this last so that event listeners have access to all the effects of the attachment
|
|
||||||
m_scene.EventManager.TriggerOnAttach(objatt.LocalId, itemID, sp.UUID);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1058,6 +1058,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (PhysicsActor != null)
|
if (PhysicsActor != null)
|
||||||
isFlying = PhysicsActor.Flying;
|
isFlying = PhysicsActor.Flying;
|
||||||
|
|
||||||
|
m_log.DebugFormat("[SCENE PRESENCCE]: Local teleport, flying = {0}", isFlying);
|
||||||
RemoveFromPhysicalScene();
|
RemoveFromPhysicalScene();
|
||||||
Velocity = Vector3.Zero;
|
Velocity = Vector3.Zero;
|
||||||
CheckLandingPoint(ref pos);
|
CheckLandingPoint(ref pos);
|
||||||
|
|
Loading…
Reference in New Issue