Fix server crash when setting prims physical under basic physics.

0.6.0-stable
Jeff Ames 2008-03-19 19:33:38 +00:00
parent 2b78c40d89
commit 84289cfb4b
1 changed files with 6 additions and 2 deletions

View File

@ -1329,8 +1329,12 @@ namespace OpenSim.Region.Environment.Scenes
new PhysicsVector(Scale.X, Scale.Y, Scale.Z),
new Quaternion(RotationOffset.W, RotationOffset.X,
RotationOffset.Y, RotationOffset.Z), usePhysics);
PhysActor.LocalID = LocalId;
DoPhysicsPropertyUpdate(usePhysics, true);
if (PhysActor != null)
{
PhysActor.LocalID = LocalId;
DoPhysicsPropertyUpdate(usePhysics, true);
}
}
else
{