diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 46c4d7b..683aafc 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -2361,6 +2361,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2361 | // "[SCENE OBJECT GROUP]: Linking group with root part {0}, {1} to group with root part {2}, {3}", | 2361 | // "[SCENE OBJECT GROUP]: Linking group with root part {0}, {1} to group with root part {2}, {3}", |
2362 | // objectGroup.RootPart.Name, objectGroup.RootPart.UUID, RootPart.Name, RootPart.UUID); | 2362 | // objectGroup.RootPart.Name, objectGroup.RootPart.UUID, RootPart.Name, RootPart.UUID); |
2363 | 2363 | ||
2364 | // Linking to ourselves is not a valid operation. | ||
2365 | if (objectGroup == this) | ||
2366 | return; | ||
2367 | |||
2364 | SceneObjectPart linkPart = objectGroup.m_rootPart; | 2368 | SceneObjectPart linkPart = objectGroup.m_rootPart; |
2365 | 2369 | ||
2366 | Vector3 oldGroupPosition = linkPart.GroupPosition; | 2370 | Vector3 oldGroupPosition = linkPart.GroupPosition; |