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:
UbitUmarov
2025-09-05 19:22:12 +01:00
parent 2950d07c86
commit 153a5e978a
3 changed files with 29 additions and 7 deletions

View File

@@ -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);
}
}