diff options
author | UbitUmarov | 2017-01-26 02:45:12 +0000 |
---|---|---|
committer | UbitUmarov | 2017-01-26 02:45:12 +0000 |
commit | 2fc7993d699bc763638664975bf6390aaf43cc94 (patch) | |
tree | 0bd41f88946c685bedb4c43b807151faa8d9da75 | |
parent | CHANGED ALLOWED_DROP should only trigger if user has no MOD rights (diff) | |
download | opensim-SC-2fc7993d699bc763638664975bf6390aaf43cc94.zip opensim-SC-2fc7993d699bc763638664975bf6390aaf43cc94.tar.gz opensim-SC-2fc7993d699bc763638664975bf6390aaf43cc94.tar.bz2 opensim-SC-2fc7993d699bc763638664975bf6390aaf43cc94.tar.xz |
ubOde: update prim mass when changing Density
-rw-r--r-- | OpenSim/Region/PhysicsModules/ubOde/ODEPrim.cs | 4 |
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 |