diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 17 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 6 |
2 files changed, 14 insertions, 9 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 2493a15..1ab107a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -1668,10 +1668,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1668 | part.Shape.FlexiForceX = (float)Force.x; | 1668 | part.Shape.FlexiForceX = (float)Force.x; |
1669 | part.Shape.FlexiForceY = (float)Force.y; | 1669 | part.Shape.FlexiForceY = (float)Force.y; |
1670 | part.Shape.FlexiForceZ = (float)Force.z; | 1670 | part.Shape.FlexiForceZ = (float)Force.z; |
1671 | part.Shape.PathCurve = 0x80; | 1671 | part.Shape.PathCurve = (byte)Extrusion.Flexible; |
1672 | part.ParentGroup.HasGroupChanged = true; | 1672 | } |
1673 | part.ScheduleFullUpdate(); | 1673 | else |
1674 | { | ||
1675 | // Other values not set, they do not seem to be sent to the viewer | ||
1676 | // Setting PathCurve appears to be what actually toggles the check box and turns Flexi on and off | ||
1677 | part.Shape.PathCurve = (byte)Extrusion.Straight; | ||
1678 | part.Shape.FlexiEntry = false; | ||
1674 | } | 1679 | } |
1680 | part.ParentGroup.HasGroupChanged = true; | ||
1681 | part.ScheduleFullUpdate(); | ||
1675 | } | 1682 | } |
1676 | 1683 | ||
1677 | /// <summary> | 1684 | /// <summary> |
@@ -5770,13 +5777,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5770 | if (parcelOwned && land.LandData.OwnerID == id || | 5777 | if (parcelOwned && land.LandData.OwnerID == id || |
5771 | parcel && land.LandData.GlobalID == id) | 5778 | parcel && land.LandData.GlobalID == id) |
5772 | { | 5779 | { |
5773 | result.Add(ssp.UUID.ToString()); | 5780 | result.Add(new LSL_Key(ssp.UUID.ToString())); |
5774 | } | 5781 | } |
5775 | } | 5782 | } |
5776 | } | 5783 | } |
5777 | else | 5784 | else |
5778 | { | 5785 | { |
5779 | result.Add(ssp.UUID.ToString()); | 5786 | result.Add(new LSL_Key(ssp.UUID.ToString())); |
5780 | } | 5787 | } |
5781 | } | 5788 | } |
5782 | // Maximum of 100 results | 5789 | // Maximum of 100 results |
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 8c3bb5b..18569ca 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -47,7 +47,6 @@ using OpenSim.Framework.Console; | |||
47 | using OpenSim.Region.Framework.Scenes; | 47 | using OpenSim.Region.Framework.Scenes; |
48 | using OpenSim.Region.Framework.Interfaces; | 48 | using OpenSim.Region.Framework.Interfaces; |
49 | using OpenSim.Region.ScriptEngine.Shared; | 49 | using OpenSim.Region.ScriptEngine.Shared; |
50 | using OpenSim.Region.ScriptEngine.Shared.ScriptBase; | ||
51 | using OpenSim.Region.ScriptEngine.Shared.CodeTools; | 50 | using OpenSim.Region.ScriptEngine.Shared.CodeTools; |
52 | using OpenSim.Region.ScriptEngine.Shared.Instance; | 51 | using OpenSim.Region.ScriptEngine.Shared.Instance; |
53 | using OpenSim.Region.ScriptEngine.Shared.Api; | 52 | using OpenSim.Region.ScriptEngine.Shared.Api; |
@@ -606,7 +605,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
606 | } | 605 | } |
607 | 606 | ||
608 | StringBuilder sb = new StringBuilder(); | 607 | StringBuilder sb = new StringBuilder(); |
609 | Queue eq = instance.EventQueue; | ||
610 | 608 | ||
611 | sb.AppendFormat("Script name : {0}\n", instance.ScriptName); | 609 | sb.AppendFormat("Script name : {0}\n", instance.ScriptName); |
612 | sb.AppendFormat("Status : {0}\n", status); | 610 | sb.AppendFormat("Status : {0}\n", status); |
@@ -1486,7 +1484,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1486 | m_MaxScriptQueue = maxScriptQueue; | 1484 | m_MaxScriptQueue = maxScriptQueue; |
1487 | 1485 | ||
1488 | STPStartInfo startInfo = new STPStartInfo(); | 1486 | STPStartInfo startInfo = new STPStartInfo(); |
1489 | startInfo.IdleTimeout = idleTimeout*1000; // convert to seconds as stated in .ini | 1487 | startInfo.ThreadPoolName = "XEngine"; |
1488 | startInfo.IdleTimeout = idleTimeout * 1000; // convert to seconds as stated in .ini | ||
1490 | startInfo.MaxWorkerThreads = maxThreads; | 1489 | startInfo.MaxWorkerThreads = maxThreads; |
1491 | startInfo.MinWorkerThreads = minThreads; | 1490 | startInfo.MinWorkerThreads = minThreads; |
1492 | startInfo.ThreadPriority = threadPriority;; | 1491 | startInfo.ThreadPriority = threadPriority;; |
@@ -1494,7 +1493,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
1494 | startInfo.StartSuspended = true; | 1493 | startInfo.StartSuspended = true; |
1495 | 1494 | ||
1496 | m_ThreadPool = new SmartThreadPool(startInfo); | 1495 | m_ThreadPool = new SmartThreadPool(startInfo); |
1497 | m_ThreadPool.Name = "XEngine"; | ||
1498 | } | 1496 | } |
1499 | 1497 | ||
1500 | // | 1498 | // |