diff options
author | Melanie | 2012-02-26 12:29:35 +0100 |
---|---|---|
committer | Melanie | 2012-02-26 12:29:35 +0100 |
commit | aa552d0526349f0db6911dbd867c847cf4e810f6 (patch) | |
tree | 8781dfe09ae135cc42ad6506bf5ce0e9e82b6cea /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | Zero force and torque on take so that items don't run away when rezzed (diff) | |
download | opensim-SC-aa552d0526349f0db6911dbd867c847cf4e810f6.zip opensim-SC-aa552d0526349f0db6911dbd867c847cf4e810f6.tar.gz opensim-SC-aa552d0526349f0db6911dbd867c847cf4e810f6.tar.bz2 opensim-SC-aa552d0526349f0db6911dbd867c847cf4e810f6.tar.xz |
Serialize Keyframe motion for region crossings
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 9898681..d488189 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1823,6 +1823,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
1823 | // Name, UUID, m_scene.RegionInfo.RegionName); | 1823 | // Name, UUID, m_scene.RegionInfo.RegionName); |
1824 | 1824 | ||
1825 | SceneObjectGroup backup_group = Copy(false); | 1825 | SceneObjectGroup backup_group = Copy(false); |
1826 | if (KeyframeMotion != null) | ||
1827 | { | ||
1828 | backup_group.KeyframeMotion = KeyframeMotion.FromData(backup_group, KeyframeMotion.Serialize()); | ||
1829 | KeyframeMotion.UpdateSceneObject(this); | ||
1830 | } | ||
1826 | backup_group.RootPart.Velocity = RootPart.Velocity; | 1831 | backup_group.RootPart.Velocity = RootPart.Velocity; |
1827 | backup_group.RootPart.Acceleration = RootPart.Acceleration; | 1832 | backup_group.RootPart.Acceleration = RootPart.Acceleration; |
1828 | backup_group.RootPart.AngularVelocity = RootPart.AngularVelocity; | 1833 | backup_group.RootPart.AngularVelocity = RootPart.AngularVelocity; |