aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 2425646..cd72dc2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3315,8 +3315,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3315 { 3315 {
3316 // Unregister controls from Presence 3316 // Unregister controls from Presence
3317 presence.UnRegisterControlEventsToScript(m_host.LocalId, m_item.ItemID); 3317 presence.UnRegisterControlEventsToScript(m_host.LocalId, m_item.ItemID);
3318 // Remove Take Control permission.
3319 m_item.PermsMask &= ~ScriptBaseClass.PERMISSION_TAKE_CONTROLS;
3320 } 3318 }
3321 } 3319 }
3322 } 3320 }
@@ -11848,11 +11846,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11848 ret.Add(new LSL_Vector(opos.X, opos.Y, opos.Z)); 11846 ret.Add(new LSL_Vector(opos.X, opos.Y, opos.Z));
11849 break; 11847 break;
11850 case ScriptBaseClass.OBJECT_ROT: 11848 case ScriptBaseClass.OBJECT_ROT:
11851// Quaternion orot = obj.RotationOffset; 11849 {
11852// ret.Add(new LSL_Rotation(orot.X, orot.Y, orot.Z, orot.W)); 11850 Quaternion rot = Quaternion.Identity;
11851
11852 if (obj.ParentGroup.RootPart == obj)
11853 rot = obj.ParentGroup.GroupRotation;
11854 else
11855 rot = obj.GetWorldRotation();
11853 11856
11854 LSL_Rotation objrot = GetPartRot(obj); 11857 LSL_Rotation objrot = new LSL_Rotation(rot.X, rot.Y, rot.Z, rot.W);
11855 ret.Add(objrot); 11858 ret.Add(objrot);
11859 }
11856 break; 11860 break;
11857 case ScriptBaseClass.OBJECT_VELOCITY: 11861 case ScriptBaseClass.OBJECT_VELOCITY:
11858 Vector3 ovel = obj.Velocity; 11862 Vector3 ovel = obj.Velocity;