diff options
author | Justin Clark-Casey (justincc) | 2011-04-14 20:32:27 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-04-14 20:32:27 +0100 |
commit | 1569148b49f188f3c46f9fd8ffa096efc70f72fa (patch) | |
tree | 4a411482eb6e50f3858ac32b427fb9f7134b7f67 /OpenSim/Region | |
parent | simplify TestRezObject() (diff) | |
download | opensim-SC_OLD-1569148b49f188f3c46f9fd8ffa096efc70f72fa.zip opensim-SC_OLD-1569148b49f188f3c46f9fd8ffa096efc70f72fa.tar.gz opensim-SC_OLD-1569148b49f188f3c46f9fd8ffa096efc70f72fa.tar.bz2 opensim-SC_OLD-1569148b49f188f3c46f9fd8ffa096efc70f72fa.tar.xz |
simplify TestSaveItemToIarV0_1()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs index 7f156f8..9e3e7d4 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/Tests/InventoryArchiverTests.cs | |||
@@ -84,24 +84,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.Tests | |||
84 | UserProfileTestUtils.CreateUserWithInventory(m_scene, userFirstName, userLastName, userId, userPassword); | 84 | UserProfileTestUtils.CreateUserWithInventory(m_scene, userFirstName, userLastName, userId, userPassword); |
85 | 85 | ||
86 | // Create asset | 86 | // Create asset |
87 | SceneObjectGroup object1; | 87 | UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040"); |
88 | SceneObjectPart part1; | 88 | SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, ownerId, "My Little Dog Object", 0x50); |
89 | { | ||
90 | string partName = "My Little Dog Object"; | ||
91 | UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040"); | ||
92 | PrimitiveBaseShape shape = PrimitiveBaseShape.CreateSphere(); | ||
93 | Vector3 groupPosition = new Vector3(10, 20, 30); | ||
94 | Quaternion rotationOffset = new Quaternion(20, 30, 40, 50); | ||
95 | Vector3 offsetPosition = new Vector3(5, 10, 15); | ||
96 | |||
97 | part1 | ||
98 | = new SceneObjectPart( | ||
99 | ownerId, shape, groupPosition, rotationOffset, offsetPosition); | ||
100 | part1.Name = partName; | ||
101 | |||
102 | object1 = new SceneObjectGroup(part1); | ||
103 | m_scene.AddNewSceneObject(object1, false); | ||
104 | } | ||
105 | 89 | ||
106 | UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060"); | 90 | UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060"); |
107 | AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1); | 91 | AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1); |