Remove unnecessary lock of OdeLock in OdePrim.changeadd()

This taint can only ever be processed from the OdeScene.Simulate() loop, which already locks OdeLock.
remove-scene-viewer
Justin Clark-Casey (justincc) 2011-10-18 20:58:59 +01:00
parent 5515c45e3b
commit f10a824e47
1 changed files with 13 additions and 18 deletions

View File

@ -1494,8 +1494,6 @@ Console.WriteLine("CreateGeom:");
// m_log.Debug(m_localID);
}
lock (_parent_scene.OdeLock)
{
#if SPAM
Console.WriteLine("changeadd 1");
#endif
@ -1513,10 +1511,7 @@ Console.WriteLine("changeadd 1");
}
if (IsPhysical && Body == IntPtr.Zero)
{
enableBody();
}
}
changeSelectedStatus();