diff options
Diffstat (limited to 'OpenSim/Data/Tests')
-rw-r--r-- | OpenSim/Data/Tests/RegionTests.cs | 15 |
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 | } |