In SceneGraph, use the property PhysicsScene instead of the variable _PhysScene, so that it gets properly initialized before being dereferenced.
parent
9d7e310e21
commit
218eb908be
|
@ -162,9 +162,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
// PhysX does this (runs in the background).
|
// 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).
|
// position).
|
||||||
//
|
//
|
||||||
// Therefore, JointMoved and JointDeactivated events will be fired as a result of the following Simulate().
|
// 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()
|
protected internal void UpdateScenePresenceMovement()
|
||||||
|
|
Loading…
Reference in New Issue