diff options
author | Melanie | 2012-04-09 21:40:41 +0100 |
---|---|---|
committer | Melanie | 2012-04-09 21:40:41 +0100 |
commit | a45ff62adb8e44192ffba6ef6ac346a7c3cf98a2 (patch) | |
tree | cc2e4d24cc5ea3b48a9521f260bae747bcbbfb14 /OpenSim/Region/ScriptEngine/Shared | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Fix a LSL merge artefact (diff) | |
download | opensim-SC-a45ff62adb8e44192ffba6ef6ac346a7c3cf98a2.zip opensim-SC-a45ff62adb8e44192ffba6ef6ac346a7c3cf98a2.tar.gz opensim-SC-a45ff62adb8e44192ffba6ef6ac346a7c3cf98a2.tar.bz2 opensim-SC-a45ff62adb8e44192ffba6ef6ac346a7c3cf98a2.tar.xz |
Merge branch 'master' of ssh://melanie@3dhosting.de/var/git/careminster into careminster
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index a95dd63..76106a0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -2280,20 +2280,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2280 | } | 2280 | } |
2281 | else | 2281 | else |
2282 | { | 2282 | { |
2283 | if (part.IsRoot) | 2283 | if (part.ParentGroup.IsAttachment) |
2284 | { | 2284 | pos = part.AttachedPos; |
2285 | return new LSL_Vector(part.AttachedPos.X, | ||
2286 | part.AttachedPos.Y, | ||
2287 | part.AttachedPos.Z); | ||
2288 | } | ||
2289 | else | 2285 | else |
2290 | { | ||
2291 | pos = part.AbsolutePosition; | 2286 | pos = part.AbsolutePosition; |
2292 | } | ||
2293 | } | 2287 | } |
2294 | 2288 | ||
2295 | // m_log.DebugFormat("[LSL API]: Returning {0} in GetPartLocalPos()", pos); | ||
2296 | |||
2297 | return new LSL_Vector(pos.X, pos.Y, pos.Z); | 2289 | return new LSL_Vector(pos.X, pos.Y, pos.Z); |
2298 | } | 2290 | } |
2299 | 2291 | ||