mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
On SceneSetupHelpers, go back to calling ScenePresence.CompleteMovement() for the last stage of AddRootAgent() instead of SP.MakeRootAgent()
Going this extra step doesn't appear to cause any test failures. This is arguably better for test purposes, though at some stage another method may arise which does just call AddRootAgent().
This commit is contained in:
@@ -504,12 +504,10 @@ namespace OpenSim.Tests.Common.Setup
|
||||
TestClient client = new TestClient(agentData, scene);
|
||||
scene.AddNewClient(client);
|
||||
|
||||
// Stage 3: Invoke agent crossing, which converts the child agent into a root agent (with appearance,
|
||||
// inventory, etc.)
|
||||
//scene.AgentCrossing(agentData.AgentID, new Vector3(90, 90, 90), false); OBSOLETE
|
||||
|
||||
// Stage 3: Complete the entrance into the region. This converts the child agent into a root agent.
|
||||
ScenePresence scp = scene.GetScenePresence(agentData.AgentID);
|
||||
scp.MakeRootAgent(new Vector3(90, 90, 90), true);
|
||||
scp.CompleteMovement(client);
|
||||
//scp.MakeRootAgent(new Vector3(90, 90, 90), true);
|
||||
|
||||
return client;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user