aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorKitto Flora2010-12-12 23:26:58 +0000
committerKitto Flora2010-12-12 23:26:58 +0000
commit9f9af315ecfb84c3c46f0c94b512b170b1d97da0 (patch)
treead380c29bfeac7cb6167d94d58f51c9497ae4fb3 /OpenSim
parentPrevent objects that are worn from ground from vanishing from the scene (diff)
downloadopensim-SC-9f9af315ecfb84c3c46f0c94b512b170b1d97da0.zip
opensim-SC-9f9af315ecfb84c3c46f0c94b512b170b1d97da0.tar.gz
opensim-SC-9f9af315ecfb84c3c46f0c94b512b170b1d97da0.tar.bz2
opensim-SC-9f9af315ecfb84c3c46f0c94b512b170b1d97da0.tar.xz
Correct Sensor axis for unattached daughter prims.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
index 3b7de53..c4f90d2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
@@ -301,7 +301,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
301 float dy; 301 float dy;
302 float dz; 302 float dz;
303 303
304 Quaternion q = SensePoint.RotationOffset; 304// Quaternion q = SensePoint.RotationOffset;
305 Quaternion q = SensePoint.GetWorldRotation(); // non-attached prim Sensor *always* uses World rotation!
305 if (SensePoint.ParentGroup.RootPart.IsAttachment) 306 if (SensePoint.ParentGroup.RootPart.IsAttachment)
306 { 307 {
307 // In attachments, the sensor cone always orients with the 308 // In attachments, the sensor cone always orients with the