ubitode prim: if makebody() is called already having a body, do a full destrution so there are no 'leaks'.
parent
c548f48791
commit
cc903992dd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue