This commit is contained in:
Cinder Biscuits
2020-05-09 12:59:06 -05:00
parent 6d0ff2db02
commit 4f72d1d025
21 changed files with 45 additions and 96 deletions

View File

@@ -61,7 +61,7 @@ namespace OpenMetaverse.TestClient
Logger.DebugLog("Using PermissionMask: " + Perms.ToString(), Client);
// Find the requested prim
rootPrim = Client.Network.CurrentSim.ObjectsPrimitives.Find(delegate(Primitive prim) { return prim.ID == rootID; });
rootPrim = Client.Network.CurrentSim.ObjectsPrimitives.Find(prim => prim.ID == rootID);
if (rootPrim == null)
return "Cannot find requested prim " + rootID.ToString();
else
@@ -77,7 +77,7 @@ namespace OpenMetaverse.TestClient
}
// Find all of the child objects linked to this root
childPrims = Client.Network.CurrentSim.ObjectsPrimitives.FindAll(delegate(Primitive prim) { return prim.ParentID == rootPrim.LocalID; });
childPrims = Client.Network.CurrentSim.ObjectsPrimitives.FindAll(prim => prim.ParentID == rootPrim.LocalID);
// Build a dictionary of primitives for referencing later
Objects[rootPrim.ID] = rootPrim;