1
0
Fork 0

#729: make shader options dialog work for migrating users

Users with fgfs <= 2.6.0 have the userarchived flag set for
/sim/rendering/shaders/quality-level, which brakes the new dialog.
This commit is contained in:
ThorstenB 2012-04-01 13:06:14 +02:00
parent a79a91a2aa
commit 1727ec1379

View file

@ -600,6 +600,7 @@
<nasal> <nasal>
<open> <open>
gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets")); gui.enable_widgets(cmdarg(), "shadows-debug", getprop("/sim/gui/devel-widgets"));
props.globals.getNode("/sim/rendering/shaders/quality-level", 1).setAttribute("userarchive", 0);
</open> </open>
</nasal> </nasal>
</PropertyList> </PropertyList>