Fixes a bug with a ZERO Quaternion when creating a prim.

afrisby
darok 2007-11-03 20:50:11 +00:00
parent fbf3c6a768
commit bcc0f3265d
1 changed files with 8 additions and 4 deletions

View File

@ -199,10 +199,14 @@ namespace OpenSim.Region.Environment.Scenes
{
if (PhysActor != null)
{
m_rotationOffset.X = PhysActor.Orientation.x;
m_rotationOffset.Y = PhysActor.Orientation.y;
m_rotationOffset.Z = PhysActor.Orientation.z;
m_rotationOffset.W = PhysActor.Orientation.w;
if(PhysActor.Orientation.x != 0 || PhysActor.Orientation.y != 0
|| PhysActor.Orientation.z != 0 || PhysActor.Orientation.w != 0)
{
m_rotationOffset.X = PhysActor.Orientation.x;
m_rotationOffset.Y = PhysActor.Orientation.y;
m_rotationOffset.Z = PhysActor.Orientation.z;
m_rotationOffset.W = PhysActor.Orientation.w;
}
}
return m_rotationOffset;
}