Allow setting the size of the wearables array from config, for core compatibility
parent
cf402812b7
commit
b5ac2eb1e1
|
@ -70,7 +70,7 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
// public static readonly int MAX_WEARABLES = 15;
|
// public static readonly int MAX_WEARABLES = 15;
|
||||||
public static readonly int PHYSICS = 15;
|
public static readonly int PHYSICS = 15;
|
||||||
public static readonly int MAX_WEARABLES = 16;
|
public static int MAX_WEARABLES = 16;
|
||||||
|
|
||||||
|
|
||||||
public static readonly UUID DEFAULT_BODY_ITEM = new UUID("66c41e39-38f9-f75a-024e-585989bfaba9");
|
public static readonly UUID DEFAULT_BODY_ITEM = new UUID("66c41e39-38f9-f75a-024e-585989bfaba9");
|
||||||
|
|
|
@ -108,6 +108,7 @@ namespace OpenSim
|
||||||
m_timeInterval = startupConfig.GetInt("timer_Interval", 1200);
|
m_timeInterval = startupConfig.GetInt("timer_Interval", 1200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AvatarWearable.MAX_WEARABLES = startupConfig.GetInt("max_wearables", AvatarWearable.MAX_WEARABLES);
|
||||||
string asyncCallMethodStr = startupConfig.GetString("async_call_method", String.Empty);
|
string asyncCallMethodStr = startupConfig.GetString("async_call_method", String.Empty);
|
||||||
FireAndForgetMethod asyncCallMethod;
|
FireAndForgetMethod asyncCallMethod;
|
||||||
if (!String.IsNullOrEmpty(asyncCallMethodStr) && Utils.EnumTryParse<FireAndForgetMethod>(asyncCallMethodStr, out asyncCallMethod))
|
if (!String.IsNullOrEmpty(asyncCallMethodStr) && Utils.EnumTryParse<FireAndForgetMethod>(asyncCallMethodStr, out asyncCallMethod))
|
||||||
|
|
Loading…
Reference in New Issue