diff options
author | Magnuz Binder | 2015-04-08 08:07:45 +0200 |
---|---|---|
committer | Michael Cerquoni | 2015-04-12 14:55:44 -0400 |
commit | bdb91d0e70e74827cde0970d4ad224d971f3ca02 (patch) | |
tree | b9134f8f69437c23371c7c6afd1fd8a82d65367c /OpenSim/Region/ScriptEngine/Shared | |
parent | Fix stand position for differing seat and root rotation. (diff) | |
download | opensim-SC_OLD-bdb91d0e70e74827cde0970d4ad224d971f3ca02.zip opensim-SC_OLD-bdb91d0e70e74827cde0970d4ad224d971f3ca02.tar.gz opensim-SC_OLD-bdb91d0e70e74827cde0970d4ad224d971f3ca02.tar.bz2 opensim-SC_OLD-bdb91d0e70e74827cde0970d4ad224d971f3ca02.tar.xz |
Fix llTargetOmega non-physical gain.
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 3 |
1 files changed, 3 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 d2ed1f7..40b7c35 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3681,6 +3681,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3681 | 3681 | ||
3682 | protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain) | 3682 | protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain) |
3683 | { | 3683 | { |
3684 | PhysicsActor pa = part.PhysActor; | ||
3685 | if ( ( pa == null || !pa.IsPhysical ) && gain == 0.0d ) | ||
3686 | spinrate = 0.0d; | ||
3684 | part.UpdateAngularVelocity(axis * spinrate); | 3687 | part.UpdateAngularVelocity(axis * spinrate); |
3685 | } | 3688 | } |
3686 | 3689 | ||