mirror of
https://github.com/opensim/opensim.git
synced 2026-08-02 06:44:15 +08:00
Prevent NRE if you do a llSetStatus(STATUS_ROTATION...) on an object that isn't physical.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user