mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Make sure we're not accessing a physics scene if we're not in one yet.
This commit is contained in:
@@ -813,7 +813,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
actor.Orientation = GetWorldRotation();
|
||||
|
||||
// Tell the physics engines that this prim changed.
|
||||
if (ParentGroup.Scene != null)
|
||||
if (ParentGroup.Scene != null && ParentGroup.Scene.PhysicsScene != null)
|
||||
ParentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(actor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user