mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
mantis 8757: LSL casting plague
This commit is contained in:
@@ -6005,7 +6005,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if(item is LSL_Vector)
|
||||
return (LSL_Vector) item;
|
||||
|
||||
if (item is LSL_String)
|
||||
if (item is LSL_String || item is string) // xengine sees string
|
||||
return new LSL_Vector(item.ToString());
|
||||
|
||||
return new LSL_Vector(0, 0, 0);
|
||||
@@ -6032,7 +6032,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (item.GetType() == typeof(LSL_Rotation))
|
||||
return (LSL_Rotation)item;
|
||||
|
||||
if (item is LSL_String)
|
||||
if (item is LSL_String || item is string) // xengine sees string)
|
||||
return new LSL_Rotation(src.Data[index].ToString());
|
||||
|
||||
return new LSL_Rotation(0, 0, 0, 1);
|
||||
|
||||
Reference in New Issue
Block a user