From 52af9b3fd7b590ec83d99a70ab133c12aef3cf7b Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Sun, 21 Sep 2008 08:12:52 +0000 Subject: [PATCH] ODE was using a box collision shape for some spheres - changed those cases to now use a mesh instead. --- OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs index 5212c29c18..f811766a06 100644 --- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs +++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs @@ -1527,8 +1527,9 @@ namespace OpenSim.Region.Physics.OdePlugin } // if it's a standard box or sphere with no cuts or hollows or twist, return false since ODE can use an internal representation for the prim - if ((pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1) - || (pbs.ProfileShape == ProfileShape.Square && pbs.PathCurve == (byte)Extrusion.Straight)) + if ((pbs.ProfileShape == ProfileShape.Square && pbs.PathCurve == (byte)Extrusion.Straight) + || (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1 + && pbs.Scale.X == pbs.Scale.Y && pbs.Scale.Y == pbs.Scale.Z)) { if (pbs.ProfileBegin == 0 && pbs.ProfileEnd == 0 && pbs.ProfileHollow == 0