minor: add some currently commented log lines for use in debugging

iar_mods
Justin Clark-Casey (justincc) 2011-12-14 21:27:47 +00:00
parent e830a77860
commit 6f2d80cc93
1 changed files with 8 additions and 1 deletions

View File

@ -1699,6 +1699,10 @@ namespace OpenSim.Region.Physics.OdePlugin
public override void RemoveAvatar(PhysicsActor actor) public override void RemoveAvatar(PhysicsActor actor)
{ {
// m_log.DebugFormat(
// "[ODE SCENE]: Removing physics character {0} {1} from physics scene {2}",
// actor.Name, actor.LocalID, Name);
//m_log.Debug("[PHYSICS]:ODELOCK"); //m_log.Debug("[PHYSICS]:ODELOCK");
((OdeCharacter) actor).Destroy(); ((OdeCharacter) actor).Destroy();
} }
@ -1707,6 +1711,9 @@ namespace OpenSim.Region.Physics.OdePlugin
{ {
if (!_characters.Contains(chr)) if (!_characters.Contains(chr))
{ {
// m_log.DebugFormat(
// "[ODE SCENE]: Adding physics character {0} {1} to physics scene {2}", chr.Name, chr.LocalID, Name);
_characters.Add(chr); _characters.Add(chr);
if (chr.bad) if (chr.bad)
@ -1765,7 +1772,7 @@ namespace OpenSim.Region.Physics.OdePlugin
public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
Vector3 size, Quaternion rotation, bool isPhysical, uint localid) Vector3 size, Quaternion rotation, bool isPhysical, uint localid)
{ {
// m_log.DebugFormat("[ODE SCENE]: Adding physics actor to {0} {1}", primName, localid); // m_log.DebugFormat("[ODE SCENE]: Adding physics prim {0} {1} to physics scene {2}", primName, localid, Name);
return AddPrim(primName, position, size, rotation, pbs, isPhysical, localid); return AddPrim(primName, position, size, rotation, pbs, isPhysical, localid);
} }