diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-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 | ||