forced still bad
parent
29bf9522e2
commit
e04af236f2
|
@ -467,7 +467,17 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
||||||
ScenePresence sp = m_scene.GetScenePresence(agentID);
|
ScenePresence sp = m_scene.GetScenePresence(agentID);
|
||||||
|
|
||||||
if(sp != null && sp.Environment != null)
|
if(sp != null && sp.Environment != null)
|
||||||
|
{
|
||||||
|
if (parcelid == -1)
|
||||||
VEnv = sp.Environment;
|
VEnv = sp.Environment;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
OSD def = ViewerEnvironment.DefaultToOSD(regionID, parcelid);
|
||||||
|
httpResponse.RawBuffer = OSDParser.SerializeLLSDXmlToBytes(def);
|
||||||
|
httpResponse.StatusCode = (int)HttpStatusCode.OK;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (parcelid == -1)
|
else if (parcelid == -1)
|
||||||
VEnv = GetRegionEnvironment();
|
VEnv = GetRegionEnvironment();
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue