mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
set object select on demand, not when it is created
This commit is contained in:
@@ -66,7 +66,7 @@ namespace OpenSim.Region.DataSnapshot.Providers
|
||||
|
||||
client.OnAddPrim += delegate (UUID ownerID, UUID groupID, Vector3 RayEnd, Quaternion rot,
|
||||
PrimitiveBaseShape shape, byte bypassRaycast, Vector3 RayStart, UUID RayTargetID,
|
||||
byte RayEndIsIntersection) { this.Stale = true; };
|
||||
byte RayEndIsIntersection, uint addFlags) { this.Stale = true; };
|
||||
client.OnLinkObjects += delegate (IClientAPI remoteClient, uint parent, List<uint> children)
|
||||
{ this.Stale = true; };
|
||||
client.OnDelinkObjects += delegate(List<uint> primIds, IClientAPI clientApi) { this.Stale = true; };
|
||||
|
||||
@@ -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