Fixes for random vegetation:
1) Remove dependency on the /sim/rendering/shader-effects 2) Fix http://code.google.com/p/flightgear-bugs/issues/detail?id=494 where toggling the random vegetation on, iff initiall set off, did not generate new random vegetation. Fixed by forcing a tile reload in the same way as used for random objects.
This commit is contained in:
parent
1523f86578
commit
6fc8b10667
2 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,6 @@
|
|||
<technique n="10">
|
||||
<predicate>
|
||||
<and>
|
||||
<property>/sim/rendering/shader-effects</property>
|
||||
<property>/sim/rendering/random-vegetation</property>
|
||||
<less-equal>
|
||||
<value type="float">1.0</value>
|
||||
|
|
|
@ -197,14 +197,15 @@
|
|||
<halign>left</halign>
|
||||
<label>Random vegetation</label>
|
||||
<name>random-vegetation</name>
|
||||
<enable>
|
||||
<property>/sim/rendering/shader-effects</property>
|
||||
</enable>
|
||||
<property>/sim/rendering/random-vegetation</property>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
<object-name>random-vegetation</object-name>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>reinit</command>
|
||||
<subsystem>tile-manager</subsystem>
|
||||
</binding>
|
||||
</checkbox>
|
||||
|
||||
<checkbox>
|
||||
|
|
Loading…
Reference in a new issue