mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Fixing NullReferenceException regression in the previous commit
This commit is contained in:
@@ -2367,7 +2367,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (m_isChildAgent == false)
|
||||
{
|
||||
Vector3 velocity = m_physicsActor.Velocity;
|
||||
Vector3 velocity = (m_physicsActor != null) ? m_physicsActor.Velocity : Vector3.Zero;
|
||||
|
||||
// Throw away duplicate or insignificant updates
|
||||
if (!m_bodyRot.ApproxEquals(m_lastRotation, ROTATION_TOLERANCE) ||
|
||||
|
||||
Reference in New Issue
Block a user