some changes on viewer caps detection
parent
fa0044fb6c
commit
bde4354c15
|
@ -126,8 +126,9 @@ namespace OpenSim.Framework.Capabilities
|
|||
None = 0,
|
||||
SentSeeds = 1,
|
||||
|
||||
ObjectAnim = 0x10,
|
||||
AdvEnv = 0x20
|
||||
ObjectAnim = 0x100,
|
||||
WLEnv = 0x200,
|
||||
AdvEnv = 0x400
|
||||
}
|
||||
|
||||
public CapsFlags Flags { get; set;}
|
||||
|
@ -294,9 +295,6 @@ namespace OpenSim.Framework.Capabilities
|
|||
port = MainServer.Instance.SSLPort;
|
||||
protocol = "https";
|
||||
}
|
||||
//
|
||||
// caps.RegisterHandler("FetchInventoryDescendents2", String.Format("{0}://{1}:{2}{3}", protocol, hostName, port, capUrl));
|
||||
|
||||
caps[kvp.Key] = string.Format("{0}://{1}:{2}{3}", protocol, hostName, port, kvp.Value.Url);
|
||||
}
|
||||
}
|
||||
|
@ -310,7 +308,7 @@ namespace OpenSim.Framework.Capabilities
|
|||
caps[kvp.Key] = kvp.Value;
|
||||
}
|
||||
|
||||
Flags |= CapsFlags.SentSeeds;
|
||||
|
||||
return caps;
|
||||
}
|
||||
|
||||
|
|
|
@ -237,7 +237,7 @@ namespace OpenSim.Framework
|
|||
set { m_DenyMinors = value; }
|
||||
}
|
||||
|
||||
public bool AllowEnviromentOverride {get; set;} = true;
|
||||
public bool AllowEnviromentOverride {get; set;} = false;
|
||||
|
||||
// All those lists...
|
||||
//
|
||||
|
|
|
@ -405,6 +405,8 @@ namespace OpenSim.Region.ClientStack.Linden
|
|||
string cstr = c.AsString();
|
||||
if (cstr.Equals("ObjectAnimation"))
|
||||
m_HostCapsObj.Flags |= Caps.CapsFlags.ObjectAnim;
|
||||
else if (cstr.Equals("EnvironmentSettings"))
|
||||
m_HostCapsObj.Flags |= Caps.CapsFlags.WLEnv;
|
||||
else if (cstr.Equals("ExtEnvironment"))
|
||||
m_HostCapsObj.Flags |= Caps.CapsFlags.AdvEnv;
|
||||
validCaps.Add(cstr);
|
||||
|
@ -414,6 +416,8 @@ namespace OpenSim.Region.ClientStack.Linden
|
|||
httpResponse.RawBuffer = Util.UTF8NBGetbytes(result);
|
||||
httpResponse.StatusCode = (int)HttpStatusCode.OK;
|
||||
//m_log.DebugFormat("[CAPS] CapsRequest {0}", result);
|
||||
|
||||
m_HostCapsObj.Flags |= Caps.CapsFlags.SentSeeds;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -13820,6 +13820,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
|||
m_SupportObjectAnimations = true;
|
||||
ret |= 0x2000;
|
||||
}
|
||||
if ((cap.Flags & Caps.CapsFlags.WLEnv) != 0)
|
||||
ret |= 0x4000;
|
||||
if ((cap.Flags & Caps.CapsFlags.AdvEnv) != 0)
|
||||
ret |= 0x8000;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue