diff options
author | Charles Krinke | 2008-08-17 20:38:40 +0000 |
---|---|---|
committer | Charles Krinke | 2008-08-17 20:38:40 +0000 |
commit | c200644bd9931a58127b3242d9c01d05bbc5e7b1 (patch) | |
tree | 8b0b0638acdb10a8fb0975f181b5c978705a7413 /OpenSim | |
parent | Mantis#1971. Thank you kindly, ChrisDown for a patch that: (diff) | |
download | opensim-SC_OLD-c200644bd9931a58127b3242d9c01d05bbc5e7b1.zip opensim-SC_OLD-c200644bd9931a58127b3242d9c01d05bbc5e7b1.tar.gz opensim-SC_OLD-c200644bd9931a58127b3242d9c01d05bbc5e7b1.tar.bz2 opensim-SC_OLD-c200644bd9931a58127b3242d9c01d05bbc5e7b1.tar.xz |
Mantis#1974. Thank you BlueWall for a patch that:
adds handling for PRIM_PHYSICS, PRIM_PHANTOM in
llSetPrimitiveParams()
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 42 |
1 files changed, 42 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 3e59129..c8c1ac3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5536,6 +5536,48 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
5536 | 5536 | ||
5537 | SetFullBright(part, face , st); | 5537 | SetFullBright(part, face , st); |
5538 | break; | 5538 | break; |
5539 | case (int)ScriptBaseClass.PRIM_MATERIAL: | ||
5540 | if (remain < 1) | ||
5541 | return; | ||
5542 | if (part != null) | ||
5543 | { | ||
5544 | /* Unhandled at this time - sends "Unhandled" message | ||
5545 | will enable when available | ||
5546 | byte material = (byte)Convert.ToByte( rules.Data[idx++]); | ||
5547 | part.Material = material; | ||
5548 | */ | ||
5549 | return; | ||
5550 | } | ||
5551 | break; | ||
5552 | case (int)ScriptBaseClass.PRIM_PHANTOM: | ||
5553 | if (remain < 1) | ||
5554 | return; | ||
5555 | |||
5556 | string ph = rules.Data[idx++].ToString(); | ||
5557 | bool phantom; | ||
5558 | |||
5559 | if(ph.Equals("1")) | ||
5560 | phantom = true; | ||
5561 | else | ||
5562 | phantom = false; | ||
5563 | |||
5564 | part.ScriptSetPhantomStatus(phantom); | ||
5565 | part.ScheduleFullUpdate(); | ||
5566 | break; | ||
5567 | case (int)ScriptBaseClass.PRIM_PHYSICS: | ||
5568 | if (remain < 1) | ||
5569 | return; | ||
5570 | string phy = rules.Data[idx++].ToString(); | ||
5571 | bool physics; | ||
5572 | |||
5573 | if(phy.Equals("1")) | ||
5574 | physics = true; | ||
5575 | else | ||
5576 | physics = false; | ||
5577 | |||
5578 | m_host.ScriptSetPhysicsStatus(physics); | ||
5579 | part.ScheduleFullUpdate(); | ||
5580 | break; | ||
5539 | } | 5581 | } |
5540 | } | 5582 | } |
5541 | } | 5583 | } |