diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs index 9f197f5..f6065a0 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/Tests/ArchiverTests.cs | |||
@@ -110,6 +110,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests | |||
110 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateSphere(); | 110 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateSphere(); |
111 | Vector3 groupPosition = new Vector3(10, 20, 30); | 111 | Vector3 groupPosition = new Vector3(10, 20, 30); |
112 | Quaternion rotationOffset = new Quaternion(20, 30, 40, 50); | 112 | Quaternion rotationOffset = new Quaternion(20, 30, 40, 50); |
113 | rotationOffset.Normalize(); | ||
113 | // Vector3 offsetPosition = new Vector3(5, 10, 15); | 114 | // Vector3 offsetPosition = new Vector3(5, 10, 15); |
114 | 115 | ||
115 | return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, Vector3.Zero) { Name = partName }; | 116 | return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, Vector3.Zero) { Name = partName }; |
@@ -122,6 +123,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver.Tests | |||
122 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateCylinder(); | 123 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateCylinder(); |
123 | Vector3 groupPosition = new Vector3(90, 80, 70); | 124 | Vector3 groupPosition = new Vector3(90, 80, 70); |
124 | Quaternion rotationOffset = new Quaternion(60, 70, 80, 90); | 125 | Quaternion rotationOffset = new Quaternion(60, 70, 80, 90); |
126 | rotationOffset.Normalize(); | ||
125 | Vector3 offsetPosition = new Vector3(20, 25, 30); | 127 | Vector3 offsetPosition = new Vector3(20, 25, 30); |
126 | 128 | ||
127 | return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, offsetPosition) { Name = partName }; | 129 | return new SceneObjectPart(ownerId, shape, groupPosition, rotationOffset, offsetPosition) { Name = partName }; |