diff options
author | Melanie | 2011-12-10 15:28:32 +0100 |
---|---|---|
committer | Melanie | 2011-12-10 15:28:32 +0100 |
commit | 323ffd7a893e76f097487c1ab461923d996dc1ca (patch) | |
tree | ad1e20397db5d21d58c7132888e6655641d5a306 /OpenSim/Region | |
parent | Prevent spurious error message when client tries to move a null item (diff) | |
download | opensim-SC-323ffd7a893e76f097487c1ab461923d996dc1ca.zip opensim-SC-323ffd7a893e76f097487c1ab461923d996dc1ca.tar.gz opensim-SC-323ffd7a893e76f097487c1ab461923d996dc1ca.tar.bz2 opensim-SC-323ffd7a893e76f097487c1ab461923d996dc1ca.tar.xz |
Fix a regression that causes data from the attachments module to fail loading
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 20 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 1 |
2 files changed, 7 insertions, 14 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 70d9f23..eca9c3b 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -755,6 +755,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
755 | if (tainted) | 755 | if (tainted) |
756 | objatt.HasGroupChanged = true; | 756 | objatt.HasGroupChanged = true; |
757 | 757 | ||
758 | if (doc != null) | ||
759 | { | ||
760 | objatt.LoadScriptState(doc); | ||
761 | objatt.ResetOwnerChangeFlag(); | ||
762 | } | ||
763 | |||
758 | // Fire after attach, so we don't get messy perms dialogs | 764 | // Fire after attach, so we don't get messy perms dialogs |
759 | // 4 == AttachedRez | 765 | // 4 == AttachedRez |
760 | objatt.CreateScriptInstances(0, true, m_scene.DefaultScriptEngine, 4); | 766 | objatt.CreateScriptInstances(0, true, m_scene.DefaultScriptEngine, 4); |
@@ -771,20 +777,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
771 | "[ATTACHMENTS MODULE]: Could not retrieve item {0} for attaching to avatar {1} at point {2}", | 777 | "[ATTACHMENTS MODULE]: Could not retrieve item {0} for attaching to avatar {1} at point {2}", |
772 | itemID, sp.Name, attachmentPt); | 778 | itemID, sp.Name, attachmentPt); |
773 | } | 779 | } |
774 | |||
775 | if (doc != null) | ||
776 | { | ||
777 | objatt.LoadScriptState(doc); | ||
778 | objatt.ResetOwnerChangeFlag(); | ||
779 | } | ||
780 | |||
781 | // Fire after attach, so we don't get messy perms dialogs | ||
782 | // 4 == AttachedRez | ||
783 | objatt.CreateScriptInstances(0, true, m_scene.DefaultScriptEngine, 4); | ||
784 | objatt.ResumeScripts(); | ||
785 | |||
786 | // Do this last so that event listeners have access to all the effects of the attachment | ||
787 | m_scene.EventManager.TriggerOnAttach(objatt.LocalId, itemID, sp.UUID); | ||
788 | } | 780 | } |
789 | } | 781 | } |
790 | 782 | ||
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 8ff804b..4034621 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1058,6 +1058,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1058 | if (PhysicsActor != null) | 1058 | if (PhysicsActor != null) |
1059 | isFlying = PhysicsActor.Flying; | 1059 | isFlying = PhysicsActor.Flying; |
1060 | 1060 | ||
1061 | m_log.DebugFormat("[SCENE PRESENCCE]: Local teleport, flying = {0}", isFlying); | ||
1061 | RemoveFromPhysicalScene(); | 1062 | RemoveFromPhysicalScene(); |
1062 | Velocity = Vector3.Zero; | 1063 | Velocity = Vector3.Zero; |
1063 | CheckLandingPoint(ref pos); | 1064 | CheckLandingPoint(ref pos); |