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