Make sure we're not accessing a physics scene if we're not in one yet.

This commit is contained in:
Melanie
2012-10-30 21:19:00 +01:00
parent dc2c198e5d
commit 5328808b18

View File

@@ -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);
}