when retrieving a sog in database tests, don't bother adding the scene since this isn't used

0.7.1-dev
Justin Clark-Casey (justincc) 2011-03-14 23:32:44 +00:00
parent 8509678e48
commit 38c3be07b8
1 changed files with 1 additions and 14 deletions

View File

@ -1047,25 +1047,12 @@ namespace OpenSim.Data.Tests
return true;
}
private SceneObjectGroup FindSOG(string name, UUID r)
{
List<SceneObjectGroup> objs = db.LoadObjects(r);
foreach (SceneObjectGroup sog in objs)
{
SceneObjectPart p = sog.RootPart;
if (p.Name == name) {
RegionInfo regionInfo = new RegionInfo();
regionInfo.RegionID = r;
regionInfo.RegionLocX = 0;
regionInfo.RegionLocY = 0;
Scene scene = new Scene(regionInfo);
sog.SetScene(scene);
if (sog.Name == name)
return sog;
}
}
return null;
}