ubOde: but only do that if sphere is physical..

This commit is contained in:
UbitUmarov
2017-07-03 23:38:55 +01:00
parent 39751891f4
commit 1dc56eb15f

View File

@@ -944,7 +944,7 @@ namespace OpenSim.Region.PhysicsModule.ubOde
return true;
}
if (gtype == d.GeomClassID.SphereClass)
if (gtype == d.GeomClassID.SphereClass && d.GeomGetBody(other) != IntPtr.Zero)
{
if(d.GeomSphereGetRadius(other) < 0.5)
return true;