Store scene identifier passed in to OdeScene for later debug messages
parent
1d4cd76e8a
commit
03202ada29
|
@ -58,6 +58,11 @@ namespace OpenSim.Region.Physics.Manager
|
||||||
{
|
{
|
||||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Name of this scene. Useful in debug messages to distinguish one OdeScene instance from another.
|
||||||
|
/// </summary>
|
||||||
|
public string Name { get; protected set; }
|
||||||
|
|
||||||
// The only thing that should register for this event is the SceneGraph
|
// The only thing that should register for this event is the SceneGraph
|
||||||
// Anything else could cause problems.
|
// Anything else could cause problems.
|
||||||
|
|
||||||
|
|
|
@ -310,10 +310,13 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||||
/// Sets many properties that ODE requires to be stable
|
/// Sets many properties that ODE requires to be stable
|
||||||
/// These settings need to be tweaked 'exactly' right or weird stuff happens.
|
/// These settings need to be tweaked 'exactly' right or weird stuff happens.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public OdeScene(string sceneIdentifier)
|
/// <param value="name">Name of the scene. Useful in debug messages.</param>
|
||||||
|
public OdeScene(string name)
|
||||||
{
|
{
|
||||||
m_log
|
m_log
|
||||||
= LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + sceneIdentifier);
|
= LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + name);
|
||||||
|
|
||||||
|
Name = name;
|
||||||
|
|
||||||
nearCallback = near;
|
nearCallback = near;
|
||||||
triCallback = TriCallback;
|
triCallback = TriCallback;
|
||||||
|
|
Loading…
Reference in New Issue