mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
*Fixes #0001818: typecast string to float
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user