In SceneGraph, use the property PhysicsScene instead of the variable _PhysScene, so that it gets properly initialized before being dereferenced.

This commit is contained in:
Diva Canto
2015-09-04 10:54:04 -07:00
parent 9d7e310e21
commit 218eb908be

View File

@@ -162,9 +162,9 @@ namespace OpenSim.Region.Framework.Scenes
// PhysX does this (runs in the background).
if (_PhyScene.IsThreaded)
if (PhysicsScene.IsThreaded)
{
_PhyScene.GetResults();
PhysicsScene.GetResults();
}
}
@@ -204,7 +204,7 @@ namespace OpenSim.Region.Framework.Scenes
// position).
//
// Therefore, JointMoved and JointDeactivated events will be fired as a result of the following Simulate().
return _PhyScene.Simulate((float)elapsed);
return PhysicsScene.Simulate((float)elapsed);
}
protected internal void UpdateScenePresenceMovement()