Skip to content

Commit

Permalink
FIX: Added SOP.IsLindenPlant and make use of it in llGetObjectDetails.
Browse files Browse the repository at this point in the history
  • Loading branch information
appurist authored and kf6kjg committed Apr 25, 2021
1 parent dac6598 commit a96c1c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion InWorldz/InWorldz.Phlox.Engine/LSLSystemAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14321,7 +14321,10 @@ public LSL_List llGetObjectDetails(string id, LSL_List args)
ret.Add(part.AttachmentPoint);
break;
case ScriptBaseClass.OBJECT_PATHFINDING_TYPE:
ret.Add(ScriptBaseClass.OPT_LEGACY_LINKSET);
if (part.IsLindenPlant())
ret.Add(ScriptBaseClass.OPT_OTHER);
else
ret.Add(ScriptBaseClass.OPT_LEGACY_LINKSET);
break;
case ScriptBaseClass.OBJECT_PHYSICS:
if ((part.GetEffectiveObjectFlags() & PrimFlags.Physics) == PrimFlags.Physics)
Expand Down
6 changes: 6 additions & 0 deletions OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,12 @@ public bool IsAttachedHUD
return (att >= MIN_HUD) && (att <= MAX_HUD);
}
}
public bool IsLindenPlant()
{
return (m_shape.PCode == (byte)PCode.Grass)
|| (m_shape.PCode == (byte)PCode.Tree)
|| (m_shape.PCode == (byte)PCode.NewTree);
}

[XmlIgnore]
public UUID AttachedAvatar
Expand Down

0 comments on commit a96c1c4

Please sign in to comment.