diff options
Diffstat (limited to '')
-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 2a3d735..9961438 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -2377,6 +2377,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2377 | // "[SCENE OBJECT GROUP]: Linking group with root part {0}, {1} to group with root part {2}, {3}", | 2377 | // "[SCENE OBJECT GROUP]: Linking group with root part {0}, {1} to group with root part {2}, {3}", |
2378 | // objectGroup.RootPart.Name, objectGroup.RootPart.UUID, RootPart.Name, RootPart.UUID); | 2378 | // objectGroup.RootPart.Name, objectGroup.RootPart.UUID, RootPart.Name, RootPart.UUID); |
2379 | 2379 | ||
2380 | // Linking to ourselves is not a valid operation. | ||
2381 | if (objectGroup == this) | ||
2382 | return; | ||
2383 | |||
2380 | SceneObjectPart linkPart = objectGroup.m_rootPart; | 2384 | SceneObjectPart linkPart = objectGroup.m_rootPart; |
2381 | 2385 | ||
2382 | Vector3 oldGroupPosition = linkPart.GroupPosition; | 2386 | Vector3 oldGroupPosition = linkPart.GroupPosition; |