mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
forced still bad
This commit is contained in:
@@ -467,7 +467,17 @@ namespace OpenSim.Region.CoreModules.World.LightShare
|
||||
ScenePresence sp = m_scene.GetScenePresence(agentID);
|
||||
|
||||
if(sp != null && sp.Environment != null)
|
||||
VEnv = sp.Environment;
|
||||
{
|
||||
if (parcelid == -1)
|
||||
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)
|
||||
VEnv = GetRegionEnvironment();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user