mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Serialize Keyframe motion for region crossings
This commit is contained in:
@@ -1823,6 +1823,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// Name, UUID, m_scene.RegionInfo.RegionName);
|
||||
|
||||
SceneObjectGroup backup_group = Copy(false);
|
||||
if (KeyframeMotion != null)
|
||||
{
|
||||
backup_group.KeyframeMotion = KeyframeMotion.FromData(backup_group, KeyframeMotion.Serialize());
|
||||
KeyframeMotion.UpdateSceneObject(this);
|
||||
}
|
||||
backup_group.RootPart.Velocity = RootPart.Velocity;
|
||||
backup_group.RootPart.Acceleration = RootPart.Acceleration;
|
||||
backup_group.RootPart.AngularVelocity = RootPart.AngularVelocity;
|
||||
|
||||
Reference in New Issue
Block a user