l0k1 / MiG-21bis

MiG-21 for FlightGear
GNU General Public License v3.0
25 stars 9 forks source link

Add type declarations in views definitions #58

Closed colingeniet closed 3 years ago

colingeniet commented 3 years ago

When a number property is defined with whitespace, nasal interprets it as a string instead of a number. This crashes my headtracking script, and I think it can also cause issues with view reset functions from FGData view.nas. This adds explicit type declarations to avoid this.

colingeniet commented 3 years ago

@l0k1 Sorry, reviving this. Could you merge this, or is there an issue with the changes? It fixes headtracking using the following addon: https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/Addons/Headtracker/

l0k1 commented 3 years ago

Sorry, no issues, this just fell off my radar. Thanks!