Make llGetMass() return total mass of object when called on root prim.
As per http://lslwiki.net/lslwiki/wakka.php?wakka=llGetMass Aims to resolve http://opensimulator.org/mantis/view.php?id=5954integration
parent
908cebbea8
commit
627efc172b
|
@ -2907,6 +2907,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
public LSL_Float llGetMass()
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
if (m_host.IsRoot)
|
||||
return m_host.ParentGroup.GetMass();
|
||||
else
|
||||
return m_host.GetMass();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue