mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
set object select on demand, not when it is created
This commit is contained in:
@@ -220,8 +220,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd);
|
||||
scene.AddNewAgent(npcAvatar, PresenceType.Npc);
|
||||
|
||||
ScenePresence sp;
|
||||
if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp))
|
||||
if (scene.TryGetScenePresence(npcAvatar.AgentId, out ScenePresence sp))
|
||||
{
|
||||
npcAvatar.Born = born;
|
||||
npcAvatar.ActiveGroupId = groupID;
|
||||
|
||||
Reference in New Issue
Block a user