aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation
diff options
context:
space:
mode:
authorMelanie2010-10-29 20:35:06 +0200
committerMelanie2010-10-29 20:35:06 +0200
commitdbd1a68b581c80b50f243ce6896e96b8ed0461dc (patch)
tree54ae5a04ffb05ce6049e807123649dd9b9c7a771 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation
parentRevert "Preliminary work on appearance layers. No user functionality yet." (diff)
downloadopensim-SC_OLD-dbd1a68b581c80b50f243ce6896e96b8ed0461dc.zip
opensim-SC_OLD-dbd1a68b581c80b50f243ce6896e96b8ed0461dc.tar.gz
opensim-SC_OLD-dbd1a68b581c80b50f243ce6896e96b8ed0461dc.tar.bz2
opensim-SC_OLD-dbd1a68b581c80b50f243ce6896e96b8ed0461dc.tar.xz
Fix a LSL issue and a prim naming issue
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 2527757..8f05359 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2187,9 +2187,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2187 m_host.AddScriptLPS(1); 2187 m_host.AddScriptLPS(1);
2188 2188
2189 // try to let this work as in SL... 2189 // try to let this work as in SL...
2190 if (m_host.ParentID == 0) 2190 if (m_host.LinkNum < 2)
2191 { 2191 {
2192 // special case: If we are root, rotate complete SOG to new rotation 2192 // Special case: If we are root, rotate complete SOG to new
2193 // rotation.
2194 // We are root if the link number is 0 (single prim) or 1
2195 // (root prim). ParentID may be nonzero in attachments and
2196 // using it would cause attachments and HUDs to rotate
2197 // to the wrong positions.
2193 SetRot(m_host, Rot2Quaternion(rot)); 2198 SetRot(m_host, Rot2Quaternion(rot));
2194 } 2199 }
2195 else 2200 else