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

avinationmerge
Melanie 2012-10-30 21:19:00 +01:00
parent dc2c198e5d
commit 5328808b18
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ namespace OpenSim.Region.Framework.Scenes
actor.Orientation = GetWorldRotation(); actor.Orientation = GetWorldRotation();
// Tell the physics engines that this prim changed. // 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); ParentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(actor);
} }