aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-04-14 20:23:48 +0100
committerJustin Clark-Casey (justincc)2011-04-14 20:23:48 +0100
commite4392648248d11699772aac42db753ae4f84495f (patch)
tree18e9f50d869f16a7ced3074813be1fa6870c8f1a
parentMake scene object parts created by the test utils unit sized. (diff)
downloadopensim-SC_OLD-e4392648248d11699772aac42db753ae4f84495f.zip
opensim-SC_OLD-e4392648248d11699772aac42db753ae4f84495f.tar.gz
opensim-SC_OLD-e4392648248d11699772aac42db753ae4f84495f.tar.bz2
opensim-SC_OLD-e4392648248d11699772aac42db753ae4f84495f.tar.xz
simplify TestRezObject()
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs18
1 files changed, 1 insertions, 17 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs
index 60a932d..7a7a8c2 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/Tests/InventoryAccessModuleTests.cs
@@ -143,23 +143,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess.Tests
143// log4net.Config.XmlConfigurator.Configure(); 143// log4net.Config.XmlConfigurator.Configure();
144 144
145 // Create asset 145 // Create asset
146 SceneObjectGroup object1; 146 SceneObjectGroup object1 = SceneSetupHelpers.CreateSceneObject(1, m_userId, "My Little Dog Object", 0x40);
147 SceneObjectPart part1;
148 {
149 string partName = "My Little Dog Object";
150 UUID ownerId = UUID.Parse("00000000-0000-0000-0000-000000000040");
151 PrimitiveBaseShape shape = PrimitiveBaseShape.CreateSphere();
152 Vector3 groupPosition = new Vector3(10, 20, 30);
153 Quaternion rotationOffset = new Quaternion(20, 30, 40, 50);
154 Vector3 offsetPosition = new Vector3(5, 10, 15);
155
156 part1
157 = new SceneObjectPart(
158 ownerId, shape, groupPosition, rotationOffset, offsetPosition);
159 part1.Name = partName;
160
161 object1 = new SceneObjectGroup(part1);
162 }
163 147
164 UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060"); 148 UUID asset1Id = UUID.Parse("00000000-0000-0000-0000-000000000060");
165 AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1); 149 AssetBase asset1 = AssetHelpers.CreateAsset(asset1Id, object1);