diff options
author | Justin Clark-Casey (justincc) | 2011-12-09 23:07:53 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-12-09 23:07:53 +0000 |
commit | af3cd00048fb6476eb5140bcfccda926627363f2 (patch) | |
tree | a795ef16e7d6db97bd2cddf8737027c1e95ff853 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | remove some unused fields in ScenePresence (diff) | |
download | opensim-SC_OLD-af3cd00048fb6476eb5140bcfccda926627363f2.zip opensim-SC_OLD-af3cd00048fb6476eb5140bcfccda926627363f2.tar.gz opensim-SC_OLD-af3cd00048fb6476eb5140bcfccda926627363f2.tar.bz2 opensim-SC_OLD-af3cd00048fb6476eb5140bcfccda926627363f2.tar.xz |
Get rid of IScene.PresenceChildStatus() which always had to execute a lookup in favour of IClientAPI.ISceneAgent.IsChildAgent instead.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index cebf51b..fa731a7 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -612,19 +612,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
612 | } | 612 | } |
613 | } | 613 | } |
614 | 614 | ||
615 | /// <summary> | 615 | public bool IsChildAgent { get; set; } |
616 | /// If this is true, agent doesn't have a representation in this scene. | ||
617 | /// this is an agent 'looking into' this scene from a nearby scene(region) | ||
618 | /// | ||
619 | /// if False, this agent has a representation in this scene | ||
620 | /// </summary> | ||
621 | private bool m_isChildAgent = true; | ||
622 | |||
623 | public bool IsChildAgent | ||
624 | { | ||
625 | get { return m_isChildAgent; } | ||
626 | set { m_isChildAgent = value; } | ||
627 | } | ||
628 | 616 | ||
629 | public uint ParentID | 617 | public uint ParentID |
630 | { | 618 | { |
@@ -741,6 +729,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
741 | { | 729 | { |
742 | AttachmentsSyncLock = new Object(); | 730 | AttachmentsSyncLock = new Object(); |
743 | 731 | ||
732 | IsChildAgent = true; | ||
744 | m_sendCourseLocationsMethod = SendCoarseLocationsDefault; | 733 | m_sendCourseLocationsMethod = SendCoarseLocationsDefault; |
745 | Animator = new ScenePresenceAnimator(this); | 734 | Animator = new ScenePresenceAnimator(this); |
746 | PresenceType = type; | 735 | PresenceType = type; |