1
0
Fork 0

Fix MIBS' nasal.

This commit is contained in:
Gijs de Rooy 2012-06-14 20:07:35 +02:00
parent acb83d7916
commit 17522e4252

View file

@ -305,7 +305,7 @@ setlistener("/sim/cam/lock", func(n) {
setlistener("/sim/signals/fdm-initialized", func { setlistener("/sim/signals/fdm-initialized", func {
var views = props.globals.getNode("/sim").getChildren("view"); var views = props.globals.getNode("/sim").getChildren("view");
forindex (var i; views) forindex (var i; views)
if (views[i].getNode("name").getValue() == "Cam View") if (views[i].getNode("name", 1).getValue() == "Cam View")
cam_view = i; cam_view = i;
setprop("/sim/current-view/view-number", cam_view); setprop("/sim/current-view/view-number", cam_view);