mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Get rid of IScene.PresenceChildStatus() which always had to execute a lookup in favour of IClientAPI.ISceneAgent.IsChildAgent instead.
This commit is contained in:
@@ -219,7 +219,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
|
||||
{
|
||||
if (client is LLClientView)
|
||||
{
|
||||
bool isChild = scene.PresenceChildStatus(client.AgentId);
|
||||
bool isChild = client.SceneAgent.IsChildAgent;
|
||||
if (isChild && !showChildren)
|
||||
return;
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
|
||||
{
|
||||
if (client is IStatsCollector)
|
||||
{
|
||||
bool isChild = scene.PresenceChildStatus(client.AgentId);
|
||||
bool isChild = client.SceneAgent.IsChildAgent;
|
||||
if (isChild && !showChildren)
|
||||
return;
|
||||
|
||||
@@ -404,7 +404,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden
|
||||
firstClient = false;
|
||||
}
|
||||
|
||||
bool isChild = scene.PresenceChildStatus(client.AgentId);
|
||||
bool isChild = client.SceneAgent.IsChildAgent;
|
||||
if (isChild && !showChildren)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user