From 8333dcf388150902e34537275bdfd0bcb902913e Mon Sep 17 00:00:00 2001 From: dahlia Date: Tue, 24 Feb 2015 17:16:30 -0800 Subject: [PATCH] llLookAt(): use non-physical rotation if host prim is a physical attachment --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 4825556ec2..ebdd9dae38 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -3108,7 +3108,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api // set the rotation of the object, copy that behavior PhysicsActor pa = m_host.PhysActor; - if (strength == 0 || pa == null || !pa.IsPhysical) + if (m_host.ParentGroup.IsAttachment || strength == 0 || pa == null || !pa.IsPhysical) { llSetRot(rot); }