remove the unused SP.initializeScenePresence()

remove-scene-viewer
Justin Clark-Casey (justincc) 2011-09-12 22:54:54 +01:00
parent 56cd7d9685
commit 62b2450529
1 changed files with 2 additions and 23 deletions

View File

@ -3568,29 +3568,6 @@ namespace OpenSim.Region.Framework.Scenes
} }
} }
public void initializeScenePresence(IClientAPI client, RegionInfo region, Scene scene)
{
m_controllingClient = client;
m_regionInfo = region;
m_scene = scene;
RegisterToEvents();
/*
AbsolutePosition = client.StartPos;
Animations = new AvatarAnimations();
Animations.LoadAnims();
m_animations = new List<UUID>();
m_animations.Add(Animations.AnimsUUID["STAND"]);
m_animationSeqs.Add(m_controllingClient.NextAnimationSequenceNumber);
SetDirectionVectors();
*/
}
internal void PushForce(Vector3 impulse) internal void PushForce(Vector3 impulse)
{ {
if (PhysicsActor != null) if (PhysicsActor != null)
@ -3618,6 +3595,7 @@ namespace OpenSim.Region.Framework.Scenes
obj.ignoreControls = (ScriptControlled)controls; obj.ignoreControls = (ScriptControlled)controls;
obj.eventControls = (ScriptControlled)controls; obj.eventControls = (ScriptControlled)controls;
} }
if (pass_on == 1 && accept == 1) if (pass_on == 1 && accept == 1)
{ {
IgnoredControls = ScriptControlled.CONTROL_ZERO; IgnoredControls = ScriptControlled.CONTROL_ZERO;
@ -3638,6 +3616,7 @@ namespace OpenSim.Region.Framework.Scenes
scriptedcontrols[Script_item_UUID] = obj; scriptedcontrols[Script_item_UUID] = obj;
} }
} }
ControllingClient.SendTakeControls(controls, pass_on == 1 ? true : false, true); ControllingClient.SendTakeControls(controls, pass_on == 1 ? true : false, true);
} }