aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-03-14 23:32:44 +0000
committerJustin Clark-Casey (justincc)2011-03-14 23:32:44 +0000
commit38c3be07b8e9c6a4cec312118bf908305af6495f (patch)
treeff48d6c880344b672a2f552c6044f9b6a3f2a389 /OpenSim/Data/Tests
parentAdd method doc to T015_LargeSceneObjects() and slightly clean up formatting. (diff)
downloadopensim-SC_OLD-38c3be07b8e9c6a4cec312118bf908305af6495f.zip
opensim-SC_OLD-38c3be07b8e9c6a4cec312118bf908305af6495f.tar.gz
opensim-SC_OLD-38c3be07b8e9c6a4cec312118bf908305af6495f.tar.bz2
opensim-SC_OLD-38c3be07b8e9c6a4cec312118bf908305af6495f.tar.xz
when retrieving a sog in database tests, don't bother adding the scene since this isn't used
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r--OpenSim/Data/Tests/RegionTests.cs15
1 files changed, 1 insertions, 14 deletions
diff --git a/OpenSim/Data/Tests/RegionTests.cs b/OpenSim/Data/Tests/RegionTests.cs
index edc9d84..e049826 100644
--- a/OpenSim/Data/Tests/RegionTests.cs
+++ b/OpenSim/Data/Tests/RegionTests.cs
@@ -1047,25 +1047,12 @@ namespace OpenSim.Data.Tests
1047 return true; 1047 return true;
1048 } 1048 }
1049 1049
1050
1051 private SceneObjectGroup FindSOG(string name, UUID r) 1050 private SceneObjectGroup FindSOG(string name, UUID r)
1052 { 1051 {
1053 List<SceneObjectGroup> objs = db.LoadObjects(r); 1052 List<SceneObjectGroup> objs = db.LoadObjects(r);
1054 foreach (SceneObjectGroup sog in objs) 1053 foreach (SceneObjectGroup sog in objs)
1055 { 1054 if (sog.Name == name)
1056 SceneObjectPart p = sog.RootPart;
1057 if (p.Name == name) {
1058 RegionInfo regionInfo = new RegionInfo();
1059 regionInfo.RegionID = r;
1060 regionInfo.RegionLocX = 0;
1061 regionInfo.RegionLocY = 0;
1062
1063 Scene scene = new Scene(regionInfo);
1064 sog.SetScene(scene);
1065
1066 return sog; 1055 return sog;
1067 }
1068 }
1069 1056
1070 return null; 1057 return null;
1071 } 1058 }