ubOde: update prim mass when changing Density

httptests
UbitUmarov 2017-01-26 02:45:12 +00:00
parent dd190f1a1f
commit 2fc7993d69
1 changed files with 3 additions and 1 deletions

View File

@ -920,8 +920,10 @@ namespace OpenSim.Region.PhysicsModule.ubOde
}
set
{
float old = m_density;
m_density = value / 100f;
// for not prim mass is not updated since this implies full rebuild of body inertia TODO
if(m_density != old)
UpdatePrimBodyData();
}
}
public override float GravModifier