LSL key should be implicitly cast to a boolean value
Signed-off-by: James Hughes <jamesh@ascent.bluewallgroup.com>mb-throttle-test
parent
c155656349
commit
cfaf904a3b
|
@ -1431,6 +1431,16 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
|||
}
|
||||
}
|
||||
|
||||
public static bool operator true(key k)
|
||||
{
|
||||
return (Boolean)k;
|
||||
}
|
||||
|
||||
public static bool operator false(key k)
|
||||
{
|
||||
return !(Boolean)k;
|
||||
}
|
||||
|
||||
static public implicit operator key(string s)
|
||||
{
|
||||
return new key(s);
|
||||
|
|
Loading…
Reference in New Issue