* Fixed prim creation in basic physics mode. ( BasicPhysics returns null probably a lot more then it should? )

0.6.0-stable
Teravus Ovares 2008-03-16 18:55:56 +00:00
parent 7e5dc7ef67
commit 76bf1f3654
1 changed files with 7 additions and 3 deletions

View File

@ -785,9 +785,13 @@ namespace OpenSim.Region.Environment.Scenes
new PhysicsVector(Scale.X, Scale.Y, Scale.Z),
new Quaternion(RotationOffset.W, RotationOffset.X,
RotationOffset.Y, RotationOffset.Z), RigidBody);
PhysActor.LocalID = LocalId;
DoPhysicsPropertyUpdate(RigidBody, true);
// Basic Physics returns null.. joy joy joy.
if (PhysActor != null)
{
PhysActor.LocalID = LocalId;
DoPhysicsPropertyUpdate(RigidBody, true);
}
}
}