set object select on demand, not when it is created

This commit is contained in:
UbitUmarov
2020-06-05 01:57:17 +01:00
parent b440a9534d
commit 775420c46a
12 changed files with 32 additions and 19 deletions

View File

@@ -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;