BulletSim: only create vehicle prim actor when vehicles are enabled.

This commit is contained in:
Robert Adams
2013-07-16 09:59:52 -07:00
parent b4c3a791aa
commit acb7b4a09a
2 changed files with 33 additions and 12 deletions

View File

@@ -116,7 +116,7 @@ public class BasicVehicles : OpenSimTestCase
// Instead the appropriate values are set and calls are made just the parts of the
// controller we want to exercise. Stepping the physics engine then applies
// the actions of that one feature.
BSDynamics vehicleActor = TestVehicle.GetVehicleActor();
BSDynamics vehicleActor = TestVehicle.GetVehicleActor(true /* createIfNone */);
if (vehicleActor != null)
{
vehicleActor.ProcessFloatVehicleParam(Vehicle.VERTICAL_ATTRACTION_EFFICIENCY, efficiency);