Actually implement the bot request object textures switch started in 225cf0d.

Forgot to propogate it down to bot level.
This commit is contained in:
Justin Clark-Casey (justincc)
2013-08-14 23:37:07 +01:00
parent 104626d732
commit 5011c657b5
2 changed files with 9 additions and 0 deletions

View File

@@ -58,6 +58,11 @@ namespace pCampBot
public delegate void AnEvent(Bot callbot, EventType someevent); // event delegate for bot events
/// <summary>
/// Controls whether bots request textures for the object information they receive
/// </summary>
public bool RequestObjectTextures { get; set; }
/// <summary>
/// Bot manager.
/// </summary>
@@ -469,6 +474,9 @@ namespace pCampBot
public void Objects_NewPrim(object sender, PrimEventArgs args)
{
if (!RequestObjectTextures)
return;
Primitive prim = args.Prim;
if (prim != null)