Fix llTargetOmega non-physical gain.

Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
inv-download
Magnuz Binder 2015-04-08 08:07:45 +02:00 committed by Michael Cerquoni
parent beba2ce781
commit bdb91d0e70
1 changed files with 3 additions and 0 deletions

View File

@ -3681,6 +3681,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain) protected void TargetOmega(SceneObjectPart part, LSL_Vector axis, double spinrate, double gain)
{ {
PhysicsActor pa = part.PhysActor;
if ( ( pa == null || !pa.IsPhysical ) && gain == 0.0d )
spinrate = 0.0d;
part.UpdateAngularVelocity(axis * spinrate); part.UpdateAngularVelocity(axis * spinrate);
} }