* Object tracker dictionaries are now internal and only accessible through various methods and properties to prevent locking disasters. Basis of this code written by jradford in issue 342
* Added a Client.Self.Name property for the full name of the avatar which does smart caching * Adds BackupCommand to TestClient (submitted by CheechBode in issue 314), backs up notecards and scripts from your inventory to hard drive. Needs more refining but it works * Parsing problems in TestClient no longer crash the app git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1378 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -23,18 +23,19 @@ namespace libsecondlife.TestClient
|
||||
|
||||
if (LLUUID.TryParse(args[0], out target))
|
||||
{
|
||||
lock (Client.Network.CurrentSim.Objects.Prims)
|
||||
{
|
||||
foreach (Primitive prim in Client.Network.CurrentSim.Objects.Prims.Values)
|
||||
Primitive targetPrim = Client.Network.CurrentSim.Objects.Find(
|
||||
delegate(Primitive prim)
|
||||
{
|
||||
if (prim.ID == target)
|
||||
{
|
||||
Client.Self.RequestSit(prim.ID, LLVector3.Zero);
|
||||
Client.Self.Sit();
|
||||
return "Requested to sit on prim " + prim.ID.ToStringHyphenated() +
|
||||
" (" + prim.LocalID + ")";
|
||||
}
|
||||
return prim.ID == target;
|
||||
}
|
||||
);
|
||||
|
||||
if (targetPrim != null)
|
||||
{
|
||||
Client.Self.RequestSit(targetPrim.ID, LLVector3.Zero);
|
||||
Client.Self.Sit();
|
||||
return "Requested to sit on prim " + targetPrim.ID.ToStringHyphenated() +
|
||||
" (" + targetPrim.LocalID + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user