Erik Hofman
02174a1df6
Add the latest fixes and expose all inertias in the property tree
2016-04-06 14:26:30 +02:00
James Turner
ca6424f76a
Fix a reset crash with pager threading.
...
Ensure pager thread is stopped before we touch
the sgUserData reference to the main props tree.
2016-03-28 23:50:47 +01:00
James Turner
08ea386197
Fix corrupt HUD fonts
...
osg::texture2D changes GL_UNPACK_ROW_LENGTH, which fntLoadTXF is not
prepared to deal with. Reset the value back to 0 before loading +
caching TXF fonts on the PLIB side.
2016-03-28 22:54:24 +01:00
James Turner
c29fa35840
Updated Canvas adaptor getImage API
...
Return the Image by ref ptr instead of raw pointer.
2016-03-26 20:25:31 +00:00
James Turner
e8398d5cee
Fix Clang unused member warnings in JSBsim.
2016-03-26 20:24:57 +00:00
James Turner
6fc2403449
Fix iterator const-ness.
2016-03-24 20:23:39 +00:00
James Turner
5baca8598f
Improve download-dir behaviour.
...
When set on the command line, will be used for aircraft packages. When
set in the Qt launcher, will also be used for aircraft downloads at
all times.
When changing the path in the launcher, the set of aircraft catalogs
is refresh automatically. Note the default catalog may need to be
re-installed.
2016-03-24 15:10:06 +00:00
James Turner
733e3b3f0c
HTTP subsystem has a default name.
...
Switch to using type-safe accessors now.
2016-03-24 15:08:38 +00:00
James Turner
88bfaca2b3
New options setting/clearing helpers.
2016-03-24 15:05:03 +00:00
James Turner
ff7b82885f
Fix for view look-at orientation bugs.
...
Force a manual re-calc of view parameters inside update. Will refactor
this in the future since shouldn’t really be necessary.
Ticket: https://sourceforge.net/p/flightgear/codetickets/1855/
2016-03-24 12:26:16 +00:00
James Turner
cbf16b7966
Fix copy-paste bug setting season in the Qt guy
...
Spotted by Adrian Serrano!
2016-03-22 10:56:05 +00:00
James Turner
d0c341fa47
Guard against a crash.
2016-03-22 10:42:21 +00:00
Erik Hofman
209194ecba
Reload user preferences after reading the video configuration file
2016-03-21 11:50:11 +01:00
Florent Rougon
0cfa4ced9c
Make --metar automatically imply --disable-real-weather-fetch
...
The --metar option has no effect unless --disable-real-weather-fetch is
also passed. This often makes users believe that --metar doesn't work.
Change the implementation for --metar so that it automatically implies
--disable-real-weather-fetch.
2016-03-20 19:56:18 +01:00
Torsten Dreyer
585b4a7f70
Fix "failed to load file: Models/..."
...
After removing /Models from FGData loading of shared models from
within a scenery model failed because the ResourceManager did not know
about additional scenery paths.
2016-03-19 21:08:24 +01:00
James Turner
74f17d2882
Fix missing menubar on Mac in some setups
...
- Only clear the OSG ‘pose as standalone’ flag when we really show
a dialog, as opposed to when we /might/ show.
Tested:
- Qt build using launcher
- No Qt build
- Qt build but launcher not requested
2016-03-19 14:46:11 +00:00
Erik Hofman
e1bb47bc89
Add support for Video adapter rendering presets
2016-03-19 13:10:36 +01:00
Torsten Dreyer
1bf5fe1c27
Fix for FreeBSD and a typo
...
Fix provided by Ganael LAPLANCHE, thanks!
2016-03-12 20:55:46 +01:00
Torsten Dreyer
a1e81a2fdc
Make some more noise if (stale) fgfs.pid file exists
2016-03-08 18:37:32 +01:00
Durk Talsma
31c66226e1
AI traffic refused to take-off, because the TrafficRecord destructor would unassign an AIAircraft from it's ATC. This caused it to get stuck in front of the runway and block all other traffic.
...
This patch may introduce an occasional crash on exit again, because it effectively undoes commit [a972df]. I'll try to find a better fix for that later on.
2016-03-06 21:23:26 +01:00
James Turner
43b4db7ef7
Improve UI around adding aircraft dirs
...
- Check if the selected path, or an ‘Aircraft’ subdir, contains
some -set.xml files, and if not, warn the user.
2016-03-05 09:35:02 +00:00
James Turner
688ae7d156
Bugfix: Qt launcher, enable variant aircraft on-disk
...
When mapping a URI to a QModelIndex, we were only considering the
primary aircraft path, for on-disk aircraft as opposed to packages.
2016-03-05 09:34:16 +00:00
Torsten Dreyer
4f8cbbb204
Fix #1851 , wrong type in multiplayer messages
...
See https://sourceforge.net/p/flightgear/codetickets/1851/
for details
2016-02-29 22:29:32 +01:00
James Turner
1aa6482a59
Fix bug #1845 , closing the Qt launcher
...
Intercept the close event and quit the app instead of continuing to
run the main FlightGear application.
https://sourceforge.net/p/flightgear/codetickets/1845/
2016-02-24 21:50:48 +02:00
Rebecca N. Palmer
41b78ce150
Nasal security: allow reading explicit --terrasync-dir
...
(but not /sim/terrasync/scenery-dir - https://bugs.debian.org/780716 )
Needed for animated jetways:
https://sourceforge.net/p/flightgear/mailman/message/34870606/
2016-02-21 20:25:02 +00:00
James Turner
de959a14f3
Rename Viewer/viewer.cxx to view
...
- keep class and file names in sync.
2016-02-17 21:25:39 +00:00
James Turner
1515154e12
View::updateData becomes a private helper.
2016-02-17 21:25:39 +00:00
James Turner
5b81333768
View offset/target-offset props are tied
...
- make these View properties work like all the others, i.e
bound and unbound when the view changes.
2016-02-17 21:25:39 +00:00
James Turner
5629cf1a8d
Remove legacy ‘axes/lat’ and ‘axes/long’ props.
...
- only exits to support some legacy joystick hat configs,
which have been updated to use the goal- properties directly.
2016-02-17 21:25:39 +00:00
James Turner
7b08c621b4
Make many View APIs private
...
- many things are now only needed by tied methods, and
hence can be made private.
2016-02-17 21:25:39 +00:00
James Turner
a3382fec6d
Simplify setting view eye/target offsets
2016-02-17 21:25:39 +00:00
James Turner
e404ebc38a
Sink more properties into View
2016-02-17 21:25:39 +00:00
James Turner
27d739084a
View-manager binds like a normal subsystem.
...
- no longer need the unusual init-bind order
2016-02-17 21:25:39 +00:00
James Turner
00a4f1ecbb
Clean up view-number property handling
2016-02-17 21:25:39 +00:00
James Turner
ae1d96cdfb
Move FOV property into View
2016-02-17 21:25:39 +00:00
James Turner
daf8c79705
View-Mgr absolute position is gone.
2016-02-17 21:25:39 +00:00
James Turner
65d5038962
Tie view orientations directly
...
- remove need for cached orientations in view-manager
2016-02-17 21:25:39 +00:00
James Turner
3171cbce75
copyToCurrent removed.
2016-02-17 21:25:39 +00:00
James Turner
bf69781ae0
Remove dead code.
2016-02-17 21:25:39 +00:00
James Turner
fa4a5e7a64
Better types for eye/target position
2016-02-17 21:25:39 +00:00
James Turner
03d5e55b57
Move data updating into the View class
2016-02-17 21:25:39 +00:00
James Turner
7391b9d76a
ViewManager::copyToCurrent is a no-op
2016-02-17 21:25:39 +00:00
James Turner
655ac851e0
Start moving view-manager logic into View
...
- work in progress, goal is to make copyToCurrent and most of
the bind/unbind logic sink into each specific View, avoiding all the
null pointer checks in view manager.
2016-02-17 21:25:39 +00:00
James Turner
8c918c6cec
Make View::set_clean private.
2016-02-17 21:25:39 +00:00
James Turner
d4d2121641
View can created itself from config properties
...
- use in view manager
- make View constructor private
2016-02-17 21:25:39 +00:00
James Turner
02ff854603
Re-Name FGViewer to flightgear::View
...
- avoids confusion with osgViewer and fgviewer application.
(source files to be renamed in a follow-up commit)
2016-02-17 21:25:39 +00:00
James Turner
e60d9a191e
Viewer: move camera-group to view manager
...
- also devirtualise many methods in FGViewer
2016-02-17 21:25:39 +00:00
Automatic Release Builder
f88d641829
new version: 2016.2.0
2016-02-17 21:16:33 +01:00
Automatic Release Builder
58859694cf
new version: 2016.1.1
2016-02-17 21:16:33 +01:00
Edward d'Auvergne
97f8cdaaea
Fix for the particle system.
...
The problem was that the change to make FGScenery a standard subsystem caused
the particle OSG group to no longer be inserted into the scene graph. The
solution was to convert the particle group to be set up as a standard branch of
the scene graph, alongside the terrain, models, aircraft, and interior branches.
The particle system is now set up as part of the init() subsystem function call,
so it is compatible with the new subsystem design.
2016-02-16 17:33:40 +01:00