mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
* Fixed prim creation in basic physics mode. ( BasicPhysics returns null probably a lot more then it should? )
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user