mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
ubitode prim: if makebody() is called already having a body, do a full destrution so there are no 'leaks'.
This commit is contained in:
@@ -1621,12 +1621,13 @@ namespace OpenSim.Region.Physics.OdePlugin
|
||||
|
||||
if (Body != IntPtr.Zero)
|
||||
{
|
||||
d.BodyDestroy(Body);
|
||||
Body = IntPtr.Zero;
|
||||
// d.BodyDestroy(Body);
|
||||
// Body = IntPtr.Zero;
|
||||
// do a more complet destruction
|
||||
DestroyBody();
|
||||
m_log.Warn("[PHYSICS]: MakeBody called having a body");
|
||||
}
|
||||
|
||||
|
||||
if (d.GeomGetBody(prim_geom) != IntPtr.Zero)
|
||||
{
|
||||
d.GeomSetBody(prim_geom, IntPtr.Zero);
|
||||
|
||||
Reference in New Issue
Block a user