diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 7fcbed4..05d5ccd 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2769,8 +2769,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2769 | 2769 | ||
2770 | if (newPosition != Vector3.Zero) | 2770 | if (newPosition != Vector3.Zero) |
2771 | newObject.RootPart.GroupPosition = newPosition; | 2771 | newObject.RootPart.GroupPosition = newPosition; |
2772 | if (newObject.RootPart.KeyframeMotion != null) | ||
2773 | newObject.RootPart.KeyframeMotion.UpdateSceneObject(newObject); | ||
2774 | 2772 | ||
2775 | if (!AddSceneObject(newObject)) | 2773 | if (!AddSceneObject(newObject)) |
2776 | { | 2774 | { |
@@ -2798,6 +2796,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2798 | // before we restart the scripts, or else some functions won't work. | 2796 | // before we restart the scripts, or else some functions won't work. |
2799 | newObject.RootPart.ParentGroup.CreateScriptInstances(0, false, DefaultScriptEngine, GetStateSource(newObject)); | 2797 | newObject.RootPart.ParentGroup.CreateScriptInstances(0, false, DefaultScriptEngine, GetStateSource(newObject)); |
2800 | newObject.ResumeScripts(); | 2798 | newObject.ResumeScripts(); |
2799 | |||
2800 | if (newObject.RootPart.KeyframeMotion != null) | ||
2801 | newObject.RootPart.KeyframeMotion.UpdateSceneObject(newObject); | ||
2801 | } | 2802 | } |
2802 | 2803 | ||
2803 | // Do this as late as possible so that listeners have full access to the incoming object | 2804 | // Do this as late as possible so that listeners have full access to the incoming object |