Fix server crash when setting prims physical under basic physics.
parent
2b78c40d89
commit
84289cfb4b
|
@ -1329,9 +1329,13 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
new PhysicsVector(Scale.X, Scale.Y, Scale.Z),
|
new PhysicsVector(Scale.X, Scale.Y, Scale.Z),
|
||||||
new Quaternion(RotationOffset.W, RotationOffset.X,
|
new Quaternion(RotationOffset.W, RotationOffset.X,
|
||||||
RotationOffset.Y, RotationOffset.Z), usePhysics);
|
RotationOffset.Y, RotationOffset.Z), usePhysics);
|
||||||
|
|
||||||
|
if (PhysActor != null)
|
||||||
|
{
|
||||||
PhysActor.LocalID = LocalId;
|
PhysActor.LocalID = LocalId;
|
||||||
DoPhysicsPropertyUpdate(usePhysics, true);
|
DoPhysicsPropertyUpdate(usePhysics, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PhysActor.IsPhysical = usePhysics;
|
PhysActor.IsPhysical = usePhysics;
|
||||||
|
|
Loading…
Reference in New Issue