aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorubit2012-07-30 03:20:29 +0200
committerubit2012-07-30 03:20:29 +0200
commit3d7b469c60bbc90aacd090d80aa1dc4e4177d022 (patch)
tree4a72ce6dfca61d4a0da91fb0d362e0ccb096b906 /OpenSim/Region/ScriptEngine
parentMerge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork (diff)
parentReturn world rotation on llGetObjectDetails()'s OBJECT_ROT (diff)
downloadopensim-SC-3d7b469c60bbc90aacd090d80aa1dc4e4177d022.zip
opensim-SC-3d7b469c60bbc90aacd090d80aa1dc4e4177d022.tar.gz
opensim-SC-3d7b469c60bbc90aacd090d80aa1dc4e4177d022.tar.bz2
opensim-SC-3d7b469c60bbc90aacd090d80aa1dc4e4177d022.tar.xz
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to '')
-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;