diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 9e52b00..eefe8bb 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -4756,20 +4756,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
4756 | if (ParentGroup == null || ParentGroup.IsDeleted) | 4756 | if (ParentGroup == null || ParentGroup.IsDeleted) |
4757 | return; | 4757 | return; |
4758 | 4758 | ||
4759 | Vector3 lPos = OffsetPosition; | 4759 | if (IsAttachment && ParentGroup.RootPart != this) |
4760 | 4760 | return; | |
4761 | if (IsAttachment) | ||
4762 | { | ||
4763 | if (ParentGroup.RootPart != this) | ||
4764 | return; | ||
4765 | |||
4766 | lPos = ParentGroup.RootPart.AttachedPos; | ||
4767 | } | ||
4768 | else | ||
4769 | { | ||
4770 | if (ParentGroup.RootPart == this) | ||
4771 | lPos = AbsolutePosition; | ||
4772 | } | ||
4773 | 4761 | ||
4774 | // Causes this thread to dig into the Client Thread Data. | 4762 | // Causes this thread to dig into the Client Thread Data. |
4775 | // Remember your locking here! | 4763 | // Remember your locking here! |