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,8 +20,7 @@
|
||||||
<technique n="10">
|
<technique n="10">
|
||||||
<predicate>
|
<predicate>
|
||||||
<and>
|
<and>
|
||||||
<property>/sim/rendering/shader-effects</property>
|
<property>/sim/rendering/random-vegetation</property>
|
||||||
<property>/sim/rendering/random-vegetation</property>
|
|
||||||
<less-equal>
|
<less-equal>
|
||||||
<value type="float">1.0</value>
|
<value type="float">1.0</value>
|
||||||
<shader-language/>
|
<shader-language/>
|
||||||
|
|
|
@ -197,14 +197,15 @@
|
||||||
<halign>left</halign>
|
<halign>left</halign>
|
||||||
<label>Random vegetation</label>
|
<label>Random vegetation</label>
|
||||||
<name>random-vegetation</name>
|
<name>random-vegetation</name>
|
||||||
<enable>
|
|
||||||
<property>/sim/rendering/shader-effects</property>
|
|
||||||
</enable>
|
|
||||||
<property>/sim/rendering/random-vegetation</property>
|
<property>/sim/rendering/random-vegetation</property>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-apply</command>
|
<command>dialog-apply</command>
|
||||||
<object-name>random-vegetation</object-name>
|
<object-name>random-vegetation</object-name>
|
||||||
</binding>
|
</binding>
|
||||||
|
<binding>
|
||||||
|
<command>reinit</command>
|
||||||
|
<subsystem>tile-manager</subsystem>
|
||||||
|
</binding>
|
||||||
</checkbox>
|
</checkbox>
|
||||||
|
|
||||||
<checkbox>
|
<checkbox>
|
||||||
|
|
Loading…
Reference in a new issue