diff options
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 138bcc9..1d4c235 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6134,6 +6134,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6134 | PSYS_PART_MAX_AGE = 7, | 6134 | PSYS_PART_MAX_AGE = 7, |
6135 | PSYS_SRC_ACCEL = 8, | 6135 | PSYS_SRC_ACCEL = 8, |
6136 | PSYS_SRC_PATTERN = 9, | 6136 | PSYS_SRC_PATTERN = 9, |
6137 | PSYS_SRC_INNERANGLE = 10, | ||
6138 | PSYS_SRC_OUTERANGLE = 11, | ||
6137 | PSYS_SRC_TEXTURE = 12, | 6139 | PSYS_SRC_TEXTURE = 12, |
6138 | PSYS_SRC_BURST_RATE = 13, | 6140 | PSYS_SRC_BURST_RATE = 13, |
6139 | PSYS_SRC_BURST_PART_COUNT = 15, | 6141 | PSYS_SRC_BURST_PART_COUNT = 15, |
@@ -6266,6 +6268,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6266 | prules.Pattern = (Primitive.ParticleSystem.SourcePattern)tmpi; | 6268 | prules.Pattern = (Primitive.ParticleSystem.SourcePattern)tmpi; |
6267 | break; | 6269 | break; |
6268 | 6270 | ||
6271 | // PSYS_SRC_INNERANGLE and PSYS_SRC_ANGLE_BEGIN use the same variables. The | ||
6272 | // PSYS_SRC_OUTERANGLE and PSYS_SRC_ANGLE_END also use the same variable. The | ||
6273 | // client tells the difference between the two by looking at the 0x02 bit in | ||
6274 | // the PartFlags variable. | ||
6275 | case (int)ScriptBaseClass.PSYS_SRC_INNERANGLE: | ||
6276 | tempf = (float)rules.GetLSLFloatItem(i + 1); | ||
6277 | prules.InnerAngle = (float)tempf; | ||
6278 | prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off. | ||
6279 | break; | ||
6280 | |||
6281 | case (int)ScriptBaseClass.PSYS_SRC_OUTERANGLE: | ||
6282 | tempf = (float)rules.GetLSLFloatItem(i + 1); | ||
6283 | prules.OuterAngle = (float)tempf; | ||
6284 | prules.PartFlags &= 0xFFFFFFFD; // Make sure new angle format is off. | ||
6285 | break; | ||
6286 | |||
6269 | case (int)ScriptBaseClass.PSYS_SRC_TEXTURE: | 6287 | case (int)ScriptBaseClass.PSYS_SRC_TEXTURE: |
6270 | prules.Texture = KeyOrName(rules.GetLSLStringItem(i + 1)); | 6288 | prules.Texture = KeyOrName(rules.GetLSLStringItem(i + 1)); |
6271 | break; | 6289 | break; |
@@ -6322,11 +6340,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6322 | case (int)ScriptBaseClass.PSYS_SRC_ANGLE_BEGIN: | 6340 | case (int)ScriptBaseClass.PSYS_SRC_ANGLE_BEGIN: |
6323 | tempf = (float)rules.GetLSLFloatItem(i + 1); | 6341 | tempf = (float)rules.GetLSLFloatItem(i + 1); |
6324 | prules.InnerAngle = (float)tempf; | 6342 | prules.InnerAngle = (float)tempf; |
6343 | prules.PartFlags |= 0x02; // Set new angle format. | ||
6325 | break; | 6344 | break; |
6326 | 6345 | ||
6327 | case (int)ScriptBaseClass.PSYS_SRC_ANGLE_END: | 6346 | case (int)ScriptBaseClass.PSYS_SRC_ANGLE_END: |
6328 | tempf = (float)rules.GetLSLFloatItem(i + 1); | 6347 | tempf = (float)rules.GetLSLFloatItem(i + 1); |
6329 | prules.OuterAngle = (float)tempf; | 6348 | prules.OuterAngle = (float)tempf; |
6349 | prules.PartFlags |= 0x02; // Set new angle format. | ||
6330 | break; | 6350 | break; |
6331 | 6351 | ||
6332 | case (int)ScriptBaseClass.PSYS_SRC_INNERANGLE: | 6352 | case (int)ScriptBaseClass.PSYS_SRC_INNERANGLE: |