mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user