mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
refactor: simplify SOP.AttachedAvatar into SOG.AttachedAvatar
This does a tiny bit to reduce code complexity, memory requirement and the cpu time of pointlessly setting this field to the same value in every SOP
This commit is contained in:
@@ -221,9 +221,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public scriptEvents AggregateScriptEvents;
|
||||
|
||||
|
||||
public UUID AttachedAvatar;
|
||||
|
||||
|
||||
public Vector3 AttachedPos;
|
||||
|
||||
|
||||
@@ -728,7 +725,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (IsAttachment)
|
||||
{
|
||||
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
|
||||
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(ParentGroup.AttachedAvatar);
|
||||
if (sp != null)
|
||||
return sp.AbsolutePosition;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user