1
0
Fork 0

Sim: fix view controller to whitelist

This commit is contained in:
Josh Davidson 2021-11-08 10:44:58 -05:00
parent 01ec6a06b7
commit 0cd3549867
3 changed files with 2 additions and 5 deletions

View file

@ -251,7 +251,6 @@ var Sim = {
name: props.globals.getNode("/sim/current-view/name", 1),
pitchOffsetDeg: props.globals.getNode("/sim/current-view/pitch-offset-deg", 1),
rollOffsetDeg: props.globals.getNode("/sim/current-view/roll-offset-deg", 1),
type: props.globals.getNode("/sim/current-view/type", 1),
viewNumberRaw: props.globals.getNode("/sim/current-view/view-number-raw", 1),
zOffsetDefault: props.globals.getNode("/sim/current-view/z-offset-default", 1),
xOffsetM: props.globals.getNode("/sim/current-view/x-offset-m", 1),

View file

@ -8,11 +8,9 @@ var max_dist = 0;
var canChangeZOffset = 0;
var decStep = -5;
var incStep = 5;
var viewName = "XX";
var fovZoom = func(d) {
viewName = pts.Sim.CurrentView.name.getValue();
canChangeZOffset = pts.Sim.CurrentView.type.getValue() == "lookat" and viewName != "Tower View" and viewName != "Fly-By View" and viewName != "Chase View" and viewName != "Chase View Without Yaw" and viewName != "Walk View";
canChangeZOffset = pts.Sim.CurrentView.name.getValue() == "Helicopter View";
if (pts.Sim.CurrentView.zOffsetM.getValue() <= -50) {
decStep = -10;

View file

@ -1 +1 @@
49
50