mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Don't try to save changed attachment states when an NPC with attachments is removed from the scene.
This is done by introducing a PresenceType enum into ScenePresence which currently has two values, User and Npc. This seems better than a SaveAttachments flag in terms of code comprehension, though I'm still slightly uneasy about introducing these semantics to core objects
This commit is contained in:
@@ -72,10 +72,11 @@ namespace OpenSim.Framework
|
||||
|
||||
/// <summary>
|
||||
/// Register the new client with the scene. The client starts off as a child agent - the later agent crossing
|
||||
/// will promote it to a root agent during login.
|
||||
/// will promote it to a root agent.
|
||||
/// </summary>
|
||||
/// <param name="client"></param
|
||||
void AddNewClient(IClientAPI client);
|
||||
/// <param name="client"></param>
|
||||
/// <param name="type">The type of agent to add.</param>
|
||||
void AddNewClient(IClientAPI client, PresenceType type);
|
||||
|
||||
/// <summary>
|
||||
/// Remove the given client from the scene.
|
||||
|
||||
Reference in New Issue
Block a user