Prevent NRE if you do a llSetStatus(STATUS_ROTATION...) on an object that isn't physical.
parent
1f06532b82
commit
3fdc445dd1
|
@ -2335,8 +2335,11 @@ if (m_shape != null) {
|
|||
|
||||
public void SetPhysicsAxisRotation()
|
||||
{
|
||||
PhysActor.LockAngularMotion(RotationAxis);
|
||||
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
|
||||
if (PhysActor != null)
|
||||
{
|
||||
PhysActor.LockAngularMotion(RotationAxis);
|
||||
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
|
||||
}
|
||||
}
|
||||
|
||||
public void SetScriptEvents(UUID scriptid, int events)
|
||||
|
|
Loading…
Reference in New Issue