mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
== UUID.Zero is slow
This commit is contained in:
@@ -1496,7 +1496,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
return false;
|
||||
}
|
||||
|
||||
if (uinfo.HomeRegionID == UUID.Zero)
|
||||
if (uinfo.HomeRegionID.IsZero())
|
||||
{
|
||||
// can't find the Home region: Tell viewer and abort
|
||||
m_log.ErrorFormat("[ENTITY TRANSFER MODULE] no home set {0}", id);
|
||||
@@ -1833,7 +1833,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
agent.Name, neighbourRegion.RegionName, reason);
|
||||
|
||||
ReInstantiateScripts(agent);
|
||||
if(agent.ParentID == 0 && agent.ParentUUID == UUID.Zero)
|
||||
if(agent.ParentID == 0 && agent.ParentUUID.IsZero())
|
||||
{
|
||||
agent.AddToPhysicalScene(isFlying);
|
||||
}
|
||||
|
||||
@@ -646,7 +646,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
return base.HandleIncomingSceneObject(so, newPosition);
|
||||
|
||||
// Equally, we can't use so.AttachedAvatar here.
|
||||
if (OwnerID == UUID.Zero || Scene.UserManagementModule.IsLocalGridUser(OwnerID))
|
||||
if (OwnerID.IsZero() || Scene.UserManagementModule.IsLocalGridUser(OwnerID))
|
||||
return base.HandleIncomingSceneObject(so, newPosition);
|
||||
|
||||
// foreign user
|
||||
|
||||
Reference in New Issue
Block a user