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

@ -198,12 +198,16 @@ namespace OpenSim.Region.Environment.Scenes
get get
{ {
if (PhysActor != null) if (PhysActor != null)
{
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.X = PhysActor.Orientation.x;
m_rotationOffset.Y = PhysActor.Orientation.y; m_rotationOffset.Y = PhysActor.Orientation.y;
m_rotationOffset.Z = PhysActor.Orientation.z; m_rotationOffset.Z = PhysActor.Orientation.z;
m_rotationOffset.W = PhysActor.Orientation.w; m_rotationOffset.W = PhysActor.Orientation.w;
} }
}
return m_rotationOffset; return m_rotationOffset;
} }
set set