aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index b558bb2..535e765 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -199,10 +199,14 @@ namespace OpenSim.Region.Environment.Scenes
199 { 199 {
200 if (PhysActor != null) 200 if (PhysActor != null)
201 { 201 {
202 m_rotationOffset.X = PhysActor.Orientation.x; 202 if(PhysActor.Orientation.x != 0 || PhysActor.Orientation.y != 0
203 m_rotationOffset.Y = PhysActor.Orientation.y; 203 || PhysActor.Orientation.z != 0 || PhysActor.Orientation.w != 0)
204 m_rotationOffset.Z = PhysActor.Orientation.z; 204 {
205 m_rotationOffset.W = PhysActor.Orientation.w; 205 m_rotationOffset.X = PhysActor.Orientation.x;
206 m_rotationOffset.Y = PhysActor.Orientation.y;
207 m_rotationOffset.Z = PhysActor.Orientation.z;
208 m_rotationOffset.W = PhysActor.Orientation.w;
209 }
206 } 210 }
207 return m_rotationOffset; 211 return m_rotationOffset;
208 } 212 }