diff options
author | Teravus Ovares | 2008-03-14 06:20:50 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-14 06:20:50 +0000 |
commit | ae9a98ceb15e43dc24c485955051f554a2247401 (patch) | |
tree | 27cd062a1ffd841eefba779db9752aa02350a8d1 /OpenSim/Region/ScriptEngine/Common | |
parent | * Preliminary work with the ODEPlugin to collect collision data. (diff) | |
download | opensim-SC-ae9a98ceb15e43dc24c485955051f554a2247401.zip opensim-SC-ae9a98ceb15e43dc24c485955051f554a2247401.tar.gz opensim-SC-ae9a98ceb15e43dc24c485955051f554a2247401.tar.bz2 opensim-SC-ae9a98ceb15e43dc24c485955051f554a2247401.tar.xz |
* Added proper handling of llSetStatus(STATUS_PHYSICS,BOOL)
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index e64fb36..ab7519e 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -609,11 +609,18 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
609 | m_host.AddScriptLPS(1); | 609 | m_host.AddScriptLPS(1); |
610 | if ((status & BuiltIn_Commands_BaseClass.STATUS_PHYSICS) == BuiltIn_Commands_BaseClass.STATUS_PHYSICS) | 610 | if ((status & BuiltIn_Commands_BaseClass.STATUS_PHYSICS) == BuiltIn_Commands_BaseClass.STATUS_PHYSICS) |
611 | { | 611 | { |
612 | m_host.AddFlag(LLObject.ObjectFlags.Physics); | 612 | if (value == 1) |
613 | m_host.ScriptSetPhysicsStatus(true); | ||
614 | else | ||
615 | m_host.ScriptSetPhysicsStatus(false); | ||
616 | |||
613 | } | 617 | } |
614 | if ((status & BuiltIn_Commands_BaseClass.STATUS_PHANTOM) == BuiltIn_Commands_BaseClass.STATUS_PHANTOM) | 618 | if ((status & BuiltIn_Commands_BaseClass.STATUS_PHANTOM) == BuiltIn_Commands_BaseClass.STATUS_PHANTOM) |
615 | { | 619 | { |
616 | m_host.AddFlag(LLObject.ObjectFlags.Phantom); | 620 | if (value == 1) |
621 | m_host.ScriptSetPhantomStatus(true); | ||
622 | else | ||
623 | m_host.ScriptSetPhantomStatus(false); | ||
617 | } | 624 | } |
618 | if ((status & BuiltIn_Commands_BaseClass.STATUS_CAST_SHADOWS) == BuiltIn_Commands_BaseClass.STATUS_CAST_SHADOWS) | 625 | if ((status & BuiltIn_Commands_BaseClass.STATUS_CAST_SHADOWS) == BuiltIn_Commands_BaseClass.STATUS_CAST_SHADOWS) |
619 | { | 626 | { |