Make map search work also for hyperlinked regions.
parent
76dc52dba4
commit
6a6a8df1ba
|
@ -322,10 +322,12 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Grid
|
||||||
{
|
{
|
||||||
List<GridRegion> rinfos = new List<GridRegion>();
|
List<GridRegion> rinfos = new List<GridRegion>();
|
||||||
|
|
||||||
// Commenting until regionname exists
|
if (name == string.Empty)
|
||||||
//foreach (SimpleRegionInfo r in m_HyperlinkRegions.Values)
|
return rinfos;
|
||||||
// if ((r.RegionName != null) && r.RegionName.StartsWith(name))
|
|
||||||
// rinfos.Add(r);
|
foreach (GridRegion r in m_HyperlinkRegions.Values)
|
||||||
|
if ((r.RegionName != null) && r.RegionName.ToLower().StartsWith(name.ToLower()))
|
||||||
|
rinfos.Add(r);
|
||||||
|
|
||||||
rinfos.AddRange(m_GridServiceConnector.GetRegionsByName(scopeID, name, maxNumber));
|
rinfos.AddRange(m_GridServiceConnector.GetRegionsByName(scopeID, name, maxNumber));
|
||||||
return rinfos;
|
return rinfos;
|
||||||
|
|
Loading…
Reference in New Issue