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 4163d3bed9
commit 31009dc822
3 changed files with 2 additions and 5 deletions

View file

@ -274,7 +274,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),
viewNumber: props.globals.getNode("/sim/current-view/view-number", 1),
viewNumberRaw: props.globals.getNode("/sim/current-view/view-number-raw", 1),
zOffsetDefault: props.globals.getNode("/sim/current-view/z-offset-default", 1),

View file

@ -10,7 +10,6 @@ var canChangeZOffset = 0;
var decStep = -5;
var incStep = 5;
var shakeFlag = 0;
var viewName = "XX";
var viewNumberRaw = 0;
var views = [0, 9, 10, 11, 12, 13];
var viewsOld = [0, 8, 9, 10, 11, 12];
@ -146,8 +145,7 @@ var setView = func(n) {
}
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