mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Revert "refactor: Add SOP.IsSitTargetOccupied to improve readability"
This reverts commit c8f0d476d2.
On reconsideration, I think this is less readable since immediately following code still sets SitTargetAvatar directly
This commit is contained in:
@@ -135,11 +135,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
get { return ParentGroup.RootPart == this; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Is the sit target of this part occupied?
|
||||
/// </summary>
|
||||
public bool IsSitTargetOccupied { get { return SitTargetAvatar != UUID.Zero; } }
|
||||
|
||||
/// <summary>
|
||||
/// Is an explicit sit target set for this part?
|
||||
/// </summary>
|
||||
@@ -741,7 +736,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
}
|
||||
|
||||
// TODO if we decide to do sitting in a more SL compatible way (multiple avatars per prim), this has to be fixed, too
|
||||
if (IsSitTargetOccupied)
|
||||
if (SitTargetAvatar != UUID.Zero)
|
||||
{
|
||||
ScenePresence avatar;
|
||||
if (ParentGroup.Scene.TryGetScenePresence(SitTargetAvatar, out avatar))
|
||||
|
||||
Reference in New Issue
Block a user