From 04806e02edca0a0a44c2dd2adae0a1bcad57181e Mon Sep 17 00:00:00 2001
From: Melanie
Date: Sat, 24 Dec 2011 01:40:09 +0100
Subject: Add PRIM_POS_LOCAL as an alias to PRIM_POSITION for setting the
 position. For SL compatibility only

---
 OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'OpenSim')

diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 21c0a27..3bc8750 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -7592,6 +7592,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
                             currentPosition = GetSetPosTarget(part, v, currentPosition);
 
                             break;
+                        case (int)ScriptBaseClass.PRIM_POS_LOCAL:
+                            if (remain < 1)
+                                return;
+
+                            v=rules.GetVector3Item(idx++);
+                            positionChanged = true;
+                            currentPosition = GetSetPosTarget(part, v, currentPosition);
+
+                            break;
                         case (int)ScriptBaseClass.PRIM_SIZE:
                             if (remain < 1)
                                 return;
-- 
cgit v1.1