*Fixes #0001818: typecast string to float
parent
f2742fb604
commit
6554c7bac5
|
@ -1189,6 +1189,10 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
{
|
{
|
||||||
return new Vector3(s.m_string);
|
return new Vector3(s.m_string);
|
||||||
}
|
}
|
||||||
|
public static implicit operator LSLFloat(LSLString s)
|
||||||
|
{
|
||||||
|
return new LSLFloat(Convert.ToDouble(s.m_string));
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue