mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
some types may already be native in MOD_Api ConvertFromLSL
This commit is contained in:
@@ -365,8 +365,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
/// </summary>
|
||||
protected object ConvertFromLSL(object lslparm, Type type, string fname)
|
||||
{
|
||||
|
||||
if(lslparm.GetType() == type)
|
||||
return lslparm;
|
||||
|
||||
// ---------- String ----------
|
||||
if (lslparm is LSL_String)
|
||||
else if (lslparm is LSL_String)
|
||||
{
|
||||
if (type == typeof(string))
|
||||
return (string)(LSL_String)lslparm;
|
||||
|
||||
Reference in New Issue
Block a user