mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Actually implement the bot request object textures switch started in 225cf0d.
Forgot to propogate it down to bot level.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -300,6 +300,7 @@ namespace pCampBot
|
||||
Bot pb = new Bot(bm, behaviours, firstName, lastName, password, startLocation, loginUri);
|
||||
pb.wear = wearSetting;
|
||||
pb.Client.Settings.SEND_AGENT_UPDATES = InitBotSendAgentUpdates;
|
||||
pb.RequestObjectTextures = InitBotRequestObjectTextures;
|
||||
|
||||
pb.OnConnected += handlebotEvent;
|
||||
pb.OnDisconnected += handlebotEvent;
|
||||
|
||||
Reference in New Issue
Block a user