Prevent NRE if you do a llSetStatus(STATUS_ROTATION...) on an object that isn't physical.

0.6.1-post-fixes
Homer Horwitz 2008-11-15 17:19:35 +00:00
parent 1f06532b82
commit 3fdc445dd1
1 changed files with 5 additions and 2 deletions

View File

@ -2334,10 +2334,13 @@ if (m_shape != null) {
}
public void SetPhysicsAxisRotation()
{
if (PhysActor != null)
{
PhysActor.LockAngularMotion(RotationAxis);
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
}
}
public void SetScriptEvents(UUID scriptid, int events)
{