Implement llSetKeyframedMotion. No persistence, no region crossing. Yet.

This commit is contained in:
Melanie
2012-02-26 02:36:34 +01:00
parent 5eb1679367
commit c82709c0d6
9 changed files with 493 additions and 2 deletions

View File

@@ -114,6 +114,12 @@ namespace OpenSim.Region.Framework.Scenes
private Random m_rand;
private bool m_suspendUpdates;
private List<ScenePresence> m_linkedAvatars = new List<ScenePresence>();
private KeyframeMotion m_keyframeMotion = null;
public KeyframeMotion KeyframeMotion
{
get; set;
}
public bool areUpdatesSuspended
{
@@ -1982,6 +1988,12 @@ namespace OpenSim.Region.Framework.Scenes
public void ScriptSetPhysicsStatus(bool usePhysics)
{
if (usePhysics)
{
if (KeyframeMotion != null)
KeyframeMotion.Stop();
KeyframeMotion = null;
}
UpdatePrimFlags(RootPart.LocalId, usePhysics, IsTemporary, IsPhantom, IsVolumeDetect);
}