diff options
Diffstat (limited to 'OpenSim/Tests/Common/Helpers/SceneHelpers.cs')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/SceneHelpers.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs index 78f9434..59829d9 100644 --- a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs | |||
@@ -624,7 +624,7 @@ namespace OpenSim.Tests.Common | |||
624 | /// <param name="ownerId"></param> | 624 | /// <param name="ownerId"></param> |
625 | /// <param name="partNamePrefix"> | 625 | /// <param name="partNamePrefix"> |
626 | /// The prefix to be given to part names. This will be suffixed with "Part<part no>" | 626 | /// The prefix to be given to part names. This will be suffixed with "Part<part no>" |
627 | /// (e.g. mynamePart0 for the root part) | 627 | /// (e.g. mynamePart1 for the root part) |
628 | /// </param> | 628 | /// </param> |
629 | /// <param name="uuidTail"> | 629 | /// <param name="uuidTail"> |
630 | /// The hexadecimal last part of the UUID for parts created. A UUID of the form "00000000-0000-0000-0000-{0:XD12}" | 630 | /// The hexadecimal last part of the UUID for parts created. A UUID of the form "00000000-0000-0000-0000-{0:XD12}" |
@@ -637,14 +637,14 @@ namespace OpenSim.Tests.Common | |||
637 | 637 | ||
638 | SceneObjectGroup sog | 638 | SceneObjectGroup sog |
639 | = new SceneObjectGroup( | 639 | = new SceneObjectGroup( |
640 | CreateSceneObjectPart(string.Format("{0}Part0", partNamePrefix), new UUID(rawSogId), ownerId)); | 640 | CreateSceneObjectPart(string.Format("{0}Part1", partNamePrefix), new UUID(rawSogId), ownerId)); |
641 | 641 | ||
642 | if (parts > 1) | 642 | if (parts > 1) |
643 | for (int i = 1; i < parts; i++) | 643 | for (int i = 2; i <= parts; i++) |
644 | sog.AddPart( | 644 | sog.AddPart( |
645 | CreateSceneObjectPart( | 645 | CreateSceneObjectPart( |
646 | string.Format("{0}Part{1}", partNamePrefix, i), | 646 | string.Format("{0}Part{1}", partNamePrefix, i), |
647 | new UUID(string.Format("00000000-0000-0000-0000-{0:X12}", uuidTail + i)), | 647 | new UUID(string.Format("00000000-0000-0000-0000-{0:X12}", uuidTail + i - 1)), |
648 | ownerId)); | 648 | ownerId)); |
649 | 649 | ||
650 | return sog; | 650 | return sog; |