diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 22b81dc..a4a33a4 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -2579,7 +2579,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
2579 | /// <param name="tau">Number of seconds over which to reach target</param> | 2579 | /// <param name="tau">Number of seconds over which to reach target</param> |
2580 | public void SetHoverHeight(float height, PIDHoverType hoverType, float tau) | 2580 | public void SetHoverHeight(float height, PIDHoverType hoverType, float tau) |
2581 | { | 2581 | { |
2582 | PhysicsActor pa = RootPart.PhysActor; | 2582 | PhysicsActor pa = null; |
2583 | if(IsAttachment) | ||
2584 | { | ||
2585 | ScenePresence avatar = m_scene.GetScenePresence(AttachedAvatar); | ||
2586 | if (avatar != null) | ||
2587 | pa = avatar.PhysicsActor; | ||
2588 | } | ||
2589 | else | ||
2590 | pa = RootPart.PhysActor; | ||
2583 | 2591 | ||
2584 | if (pa != null) | 2592 | if (pa != null) |
2585 | { | 2593 | { |