mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
let llSetBuoyancy work on attachments. But unlike at sl, the effect is not removed when the script or its prim is removed/deattached. SO use with care. THis lmitation was a reason why we did not let is work on attachments
This commit is contained in:
@@ -4291,10 +4291,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
public void llSetBuoyancy(double buoyancy)
|
||||
{
|
||||
|
||||
if (!m_host.ParentGroup.IsDeleted)
|
||||
{
|
||||
m_host.ParentGroup.RootPart.SetBuoyancy((float)buoyancy);
|
||||
m_host.ParentGroup.SetBuoyancy((float)buoyancy);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user