mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
ubOde: update prim mass when changing Density
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user