*Fixes #0001818: typecast string to float

0.6.0-stable
mingchen 2008-07-25 03:39:38 +00:00
parent f2742fb604
commit 6554c7bac5
1 changed files with 4 additions and 0 deletions

View File

@ -1189,6 +1189,10 @@ namespace OpenSim.Region.ScriptEngine.Common
{
return new Vector3(s.m_string);
}
public static implicit operator LSLFloat(LSLString s)
{
return new LSLFloat(Convert.ToDouble(s.m_string));
}
#endregion