Fix two inconsistencies with LightShare
parent
776d62b9c6
commit
044979066c
|
@ -244,6 +244,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
LSL_Types.Vector3 iV;
|
LSL_Types.Vector3 iV;
|
||||||
switch (rule)
|
switch (rule)
|
||||||
{
|
{
|
||||||
|
case (int)ScriptBaseClass.WL_SUN_MOON_POSITION:
|
||||||
|
idx++;
|
||||||
|
wl.sunMoonPosition = (float)rules.GetLSLFloatItem(idx);
|
||||||
|
break;
|
||||||
case (int)ScriptBaseClass.WL_AMBIENT:
|
case (int)ScriptBaseClass.WL_AMBIENT:
|
||||||
idx++;
|
idx++;
|
||||||
iQ = rules.GetQuaternionItem(idx);
|
iQ = rules.GetQuaternionItem(idx);
|
||||||
|
@ -300,7 +304,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
case (int)ScriptBaseClass.WL_CLOUD_XY_DENSITY:
|
case (int)ScriptBaseClass.WL_CLOUD_XY_DENSITY:
|
||||||
idx++;
|
idx++;
|
||||||
iV = rules.GetVector3Item(idx);
|
iV = rules.GetVector3Item(idx);
|
||||||
wl.cloudDetailXYDensity = new Vector3((float)iV.x, (float)iV.y, (float)iV.z);
|
wl.cloudXYDensity = new Vector3((float)iV.x, (float)iV.y, (float)iV.z);
|
||||||
break;
|
break;
|
||||||
case (int)ScriptBaseClass.WL_DENSITY_MULTIPLIER:
|
case (int)ScriptBaseClass.WL_DENSITY_MULTIPLIER:
|
||||||
idx++;
|
idx++;
|
||||||
|
|
|
@ -70,7 +70,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
public const int WL_CLOUD_SCROLL_Y = 32;
|
public const int WL_CLOUD_SCROLL_Y = 32;
|
||||||
public const int WL_CLOUD_SCROLL_Y_LOCK = 33;
|
public const int WL_CLOUD_SCROLL_Y_LOCK = 33;
|
||||||
public const int WL_CLOUD_SCROLL_X_LOCK = 34;
|
public const int WL_CLOUD_SCROLL_X_LOCK = 34;
|
||||||
public const int WL_DRAW_CLASSIC_CLOUDS = 35;
|
public const int WL_DRAW_CLASSIC_CLOUDS = 35;
|
||||||
|
public const int WL_SUN_MOON_POSITION = 36;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue