aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 3c47e27..34c5cfd 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -357,8 +357,8 @@ namespace OpenSim.Region.Physics.OdePlugin
357 if (_pbs.PathCurve == (byte)Extrusion.Straight) 357 if (_pbs.PathCurve == (byte)Extrusion.Straight)
358 { 358 {
359 // Cylinder 359 // Cylinder
360 float volume1 = (float)(Math.PI * Math.Pow(_size.X, 2) * _size.Z); 360 float volume1 = (float)(Math.PI * Math.Pow(_size.X/2, 2) * _size.Z);
361 float volume2 = (float)(Math.PI * Math.Pow(_size.Y, 2) * _size.Z); 361 float volume2 = (float)(Math.PI * Math.Pow(_size.Y/2, 2) * _size.Z);
362 362
363 // Approximating the cylinder's irregularity. 363 // Approximating the cylinder's irregularity.
364 if (volume1 > volume2) 364 if (volume1 > volume2)