aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs')
-rw-r--r--OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
index a2fbf41..45ef273 100644
--- a/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
+++ b/OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs
@@ -920,8 +920,10 @@ namespace OpenSim.Region.PhysicsModule.ubOde
920 } 920 }
921 set 921 set
922 { 922 {
923 float old = m_density;
923 m_density = value / 100f; 924 m_density = value / 100f;
924 // for not prim mass is not updated since this implies full rebuild of body inertia TODO 925 if(m_density != old)
926 UpdatePrimBodyData();
925 } 927 }
926 } 928 }
927 public override float GravModifier 929 public override float GravModifier