Merge branch 'justincc-master'
commit
d466446df3
|
@ -1,5 +1,4 @@
|
||||||
<<<>>>>The following people have contributed to OpenSim (Thank you
|
The following people have contributed to OpenSim (Thank you for your effort!)
|
||||||
for your effort!)
|
|
||||||
|
|
||||||
= Current OpenSim Developers (in very rough order of appearance) =
|
= Current OpenSim Developers (in very rough order of appearance) =
|
||||||
These folks represent the current core team for OpenSim, and are the
|
These folks represent the current core team for OpenSim, and are the
|
||||||
|
@ -61,8 +60,9 @@ where we are today.
|
||||||
These folks have contributed code patches or content to OpenSimulator to help make it
|
These folks have contributed code patches or content to OpenSimulator to help make it
|
||||||
what it is today.
|
what it is today.
|
||||||
|
|
||||||
* aduffy70
|
|
||||||
* A_Biondi
|
* A_Biondi
|
||||||
|
* aduffy70
|
||||||
|
* Ai Austin
|
||||||
* alex_carnell
|
* alex_carnell
|
||||||
* Alan Webb (IBM)
|
* Alan Webb (IBM)
|
||||||
* Aleric
|
* Aleric
|
||||||
|
@ -173,23 +173,18 @@ what it is today.
|
||||||
* Zha Ewry
|
* Zha Ewry
|
||||||
* ziah
|
* ziah
|
||||||
|
|
||||||
|
|
||||||
= LSL Devs =
|
= LSL Devs =
|
||||||
|
|
||||||
* Alondria
|
* Alondria
|
||||||
* CharlieO
|
* CharlieO
|
||||||
* Tedd
|
* Tedd
|
||||||
* Melanie Thielker
|
* Melanie Thielker
|
||||||
|
|
||||||
|
|
||||||
= Testers =
|
= Testers =
|
||||||
|
|
||||||
* Ai Austin
|
* Ai Austin
|
||||||
* CharlieO (LSL)
|
* CharlieO (LSL)
|
||||||
* Ckrinke
|
* Ckrinke
|
||||||
* openlifegrid.com
|
* openlifegrid.com
|
||||||
|
|
||||||
|
|
||||||
This software uses components from the following developers:
|
This software uses components from the following developers:
|
||||||
* Sleepycat Software (Berkeley DB)
|
* Sleepycat Software (Berkeley DB)
|
||||||
* Aurora-Sim (http://aurora-sim.org)
|
* Aurora-Sim (http://aurora-sim.org)
|
||||||
|
|
|
@ -434,6 +434,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
}
|
}
|
||||||
return wl;
|
return wl;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set the current Windlight scene
|
/// Set the current Windlight scene
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -446,13 +447,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
LSShoutError("LightShare functions are not enabled.");
|
LSShoutError("LightShare functions are not enabled.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200)
|
|
||||||
|
if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID))
|
||||||
{
|
{
|
||||||
LSShoutError("lsSetWindlightScene can only be used by estate managers or owners.");
|
ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
|
||||||
return 0;
|
|
||||||
|
if (sp == null || sp.GodLevel < 200)
|
||||||
|
{
|
||||||
|
LSShoutError("lsSetWindlightScene can only be used by estate managers or owners.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int success = 0;
|
int success = 0;
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
if (LightShareModule.EnableWindlight)
|
if (LightShareModule.EnableWindlight)
|
||||||
{
|
{
|
||||||
RegionLightShareData wl = getWindlightProfileFromRules(rules);
|
RegionLightShareData wl = getWindlightProfileFromRules(rules);
|
||||||
|
@ -465,8 +474,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
LSShoutError("Windlight module is disabled");
|
LSShoutError("Windlight module is disabled");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void lsClearWindlightScene()
|
public void lsClearWindlightScene()
|
||||||
{
|
{
|
||||||
if (!m_LSFunctionsEnabled)
|
if (!m_LSFunctionsEnabled)
|
||||||
|
@ -474,17 +485,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
LSShoutError("LightShare functions are not enabled.");
|
LSShoutError("LightShare functions are not enabled.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200)
|
|
||||||
|
if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID))
|
||||||
{
|
{
|
||||||
LSShoutError("lsSetWindlightScene can only be used by estate managers or owners.");
|
ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
|
||||||
return;
|
|
||||||
|
if (sp == null || sp.GodLevel < 200)
|
||||||
|
{
|
||||||
|
LSShoutError("lsSetWindlightScene can only be used by estate managers or owners.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m_host.ParentGroup.Scene.RegionInfo.WindlightSettings.valid = false;
|
m_host.ParentGroup.Scene.RegionInfo.WindlightSettings.valid = false;
|
||||||
if (m_host.ParentGroup.Scene.SimulationDataService != null)
|
if (m_host.ParentGroup.Scene.SimulationDataService != null)
|
||||||
m_host.ParentGroup.Scene.SimulationDataService.RemoveRegionWindlightSettings(m_host.ParentGroup.Scene.RegionInfo.RegionID);
|
m_host.ParentGroup.Scene.SimulationDataService.RemoveRegionWindlightSettings(m_host.ParentGroup.Scene.RegionInfo.RegionID);
|
||||||
|
|
||||||
m_host.ParentGroup.Scene.EventManager.TriggerOnSaveNewWindlightProfile();
|
m_host.ParentGroup.Scene.EventManager.TriggerOnSaveNewWindlightProfile();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set the current Windlight scene to a target avatar
|
/// Set the current Windlight scene to a target avatar
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -497,13 +516,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
LSShoutError("LightShare functions are not enabled.");
|
LSShoutError("LightShare functions are not enabled.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200)
|
|
||||||
|
if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID))
|
||||||
{
|
{
|
||||||
LSShoutError("lsSetWindlightSceneTargeted can only be used by estate managers or owners.");
|
ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
|
||||||
return 0;
|
|
||||||
|
if (sp == null || sp.GodLevel < 200)
|
||||||
|
{
|
||||||
|
LSShoutError("lsSetWindlightSceneTargeted can only be used by estate managers or owners.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int success = 0;
|
int success = 0;
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
|
|
||||||
if (LightShareModule.EnableWindlight)
|
if (LightShareModule.EnableWindlight)
|
||||||
{
|
{
|
||||||
RegionLightShareData wl = getWindlightProfileFromRules(rules);
|
RegionLightShareData wl = getWindlightProfileFromRules(rules);
|
||||||
|
@ -515,8 +542,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
LSShoutError("Windlight module is disabled");
|
LSShoutError("Windlight module is disabled");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue