diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs b/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs index e9cb213..5a6b284 100644 --- a/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/SitStand/SitStandCommandsModule.cs | |||
@@ -119,11 +119,17 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand | |||
119 | 119 | ||
120 | foreach (ScenePresence sp in scenePresences) | 120 | foreach (ScenePresence sp in scenePresences) |
121 | { | 121 | { |
122 | if (sp.SitGround || sp.IsSatOnObject) | ||
123 | continue; | ||
124 | |||
122 | SceneObjectPart sitPart = null; | 125 | SceneObjectPart sitPart = null; |
123 | List<SceneObjectGroup> sceneObjects = m_scene.GetSceneObjectGroups(); | 126 | List<SceneObjectGroup> sceneObjects = m_scene.GetSceneObjectGroups(); |
124 | 127 | ||
125 | foreach (SceneObjectGroup sceneObject in sceneObjects) | 128 | foreach (SceneObjectGroup sceneObject in sceneObjects) |
126 | { | 129 | { |
130 | if (sceneObject.IsAttachment) | ||
131 | continue; | ||
132 | |||
127 | foreach (SceneObjectPart part in sceneObject.Parts) | 133 | foreach (SceneObjectPart part in sceneObject.Parts) |
128 | { | 134 | { |
129 | if (part.IsSitTargetSet && part.SitTargetAvatar == UUID.Zero) | 135 | if (part.IsSitTargetSet && part.SitTargetAvatar == UUID.Zero) |
@@ -169,8 +175,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.SitStand | |||
169 | 175 | ||
170 | foreach (ScenePresence sp in scenePresences) | 176 | foreach (ScenePresence sp in scenePresences) |
171 | { | 177 | { |
172 | MainConsole.Instance.OutputFormat("Standing {0} in {1}", sp.Name, m_scene.Name); | 178 | if (sp.SitGround || sp.IsSatOnObject) |
173 | sp.StandUp(); | 179 | { |
180 | MainConsole.Instance.OutputFormat("Standing {0} in {1}", sp.Name, m_scene.Name); | ||
181 | sp.StandUp(); | ||
182 | } | ||
174 | } | 183 | } |
175 | } | 184 | } |
176 | 185 | ||