fix (or actually break) llList2float() since LSL_Key is same as LSL_String, the case of invalid LSL_Key cannot be handle, since most likely it is a string
parent
3b33a90e37
commit
65a1547209
|
@ -5807,8 +5807,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
string s = item.ToString();
|
string s = item.ToString();
|
||||||
if(UUID.TryParse(s, out uuidt))
|
if(UUID.TryParse(s, out uuidt))
|
||||||
return Convert.ToDouble(new LSL_Integer(s).value);
|
return Convert.ToDouble(new LSL_Integer(s).value);
|
||||||
else
|
// we can't do this because a string is also a LSL_Key for now :(
|
||||||
return 0;
|
// else
|
||||||
|
// return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue