aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/OdePlugin/ODEPrim.cs')
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 9e9c36f..d241574 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -723,6 +723,8 @@ namespace OpenSim.Region.Physics.OdePlugin
723 break; 723 break;
724 } 724 }
725 } 725 }
726 if (returnMass > _parent_scene.maximumMassObject)
727 returnMass = _parent_scene.maximumMassObject;
726 return returnMass; 728 return returnMass;
727 }// end CalculateMass 729 }// end CalculateMass
728 730
@@ -733,6 +735,7 @@ namespace OpenSim.Region.Physics.OdePlugin
733 if (Body != (IntPtr) 0) 735 if (Body != (IntPtr) 0)
734 { 736 {
735 float newmass = CalculateMass(); 737 float newmass = CalculateMass();
738
736 //m_log.Info("[PHYSICS]: New Mass: " + newmass.ToString()); 739 //m_log.Info("[PHYSICS]: New Mass: " + newmass.ToString());
737 740
738 d.MassSetBoxTotal(out pMass, newmass, _size.X, _size.Y, _size.Z); 741 d.MassSetBoxTotal(out pMass, newmass, _size.X, _size.Y, _size.Z);