diff options
author | Jeff Ames | 2008-08-17 23:07:14 +0000 |
---|---|---|
committer | Jeff Ames | 2008-08-17 23:07:14 +0000 |
commit | 531f6c01eb8e137016e4e9a20438a107cd7b4f7f (patch) | |
tree | b29e68fb095a61fa2600f1f65bf0e75592bf9c89 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Change the deselect processing to prevent gratuituous full update (diff) | |
download | opensim-SC-531f6c01eb8e137016e4e9a20438a107cd7b4f7f.zip opensim-SC-531f6c01eb8e137016e4e9a20438a107cd7b4f7f.tar.gz opensim-SC-531f6c01eb8e137016e4e9a20438a107cd7b4f7f.tar.bz2 opensim-SC-531f6c01eb8e137016e4e9a20438a107cd7b4f7f.tar.xz |
Update svn properties, minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index c8c1ac3..9604828 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -5536,48 +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: | 5539 | case (int)ScriptBaseClass.PRIM_MATERIAL: |
5540 | if (remain < 1) | 5540 | if (remain < 1) |
5541 | return; | 5541 | return; |
5542 | if (part != null) | 5542 | if (part != null) |
5543 | { | 5543 | { |
5544 | /* Unhandled at this time - sends "Unhandled" message | 5544 | /* Unhandled at this time - sends "Unhandled" message |
5545 | will enable when available | 5545 | will enable when available |
5546 | byte material = (byte)Convert.ToByte( rules.Data[idx++]); | 5546 | byte material = (byte)Convert.ToByte( rules.Data[idx++]); |
5547 | part.Material = material; | 5547 | part.Material = material; |
5548 | */ | 5548 | */ |
5549 | return; | 5549 | return; |
5550 | } | 5550 | } |
5551 | break; | 5551 | break; |
5552 | case (int)ScriptBaseClass.PRIM_PHANTOM: | 5552 | case (int)ScriptBaseClass.PRIM_PHANTOM: |
5553 | if (remain < 1) | 5553 | if (remain < 1) |
5554 | return; | 5554 | return; |
5555 | 5555 | ||
5556 | string ph = rules.Data[idx++].ToString(); | 5556 | string ph = rules.Data[idx++].ToString(); |
5557 | bool phantom; | 5557 | bool phantom; |
5558 | 5558 | ||
5559 | if(ph.Equals("1")) | 5559 | if (ph.Equals("1")) |
5560 | phantom = true; | 5560 | phantom = true; |
5561 | else | 5561 | else |
5562 | phantom = false; | 5562 | phantom = false; |
5563 | 5563 | ||
5564 | part.ScriptSetPhantomStatus(phantom); | 5564 | part.ScriptSetPhantomStatus(phantom); |
5565 | part.ScheduleFullUpdate(); | 5565 | part.ScheduleFullUpdate(); |
5566 | break; | 5566 | break; |
5567 | case (int)ScriptBaseClass.PRIM_PHYSICS: | 5567 | case (int)ScriptBaseClass.PRIM_PHYSICS: |
5568 | if (remain < 1) | 5568 | if (remain < 1) |
5569 | return; | 5569 | return; |
5570 | string phy = rules.Data[idx++].ToString(); | 5570 | string phy = rules.Data[idx++].ToString(); |
5571 | bool physics; | 5571 | bool physics; |
5572 | 5572 | ||
5573 | if(phy.Equals("1")) | 5573 | if (phy.Equals("1")) |
5574 | physics = true; | 5574 | physics = true; |
5575 | else | 5575 | else |
5576 | physics = false; | 5576 | physics = false; |
5577 | 5577 | ||
5578 | m_host.ScriptSetPhysicsStatus(physics); | 5578 | m_host.ScriptSetPhysicsStatus(physics); |
5579 | part.ScheduleFullUpdate(); | 5579 | part.ScheduleFullUpdate(); |
5580 | break; | 5580 | break; |
5581 | } | 5581 | } |
5582 | } | 5582 | } |
5583 | } | 5583 | } |