1
0
Fork 0

Issue 181: add object-name to binding of snow level slider

The dialog-apply binding was setting all the properties in the
rendering dialog, including ones that are tested in technique
predicates. This was causing effects to be reinitialized.
This commit is contained in:
Tim Moore 2010-12-26 18:21:26 +01:00
parent 564c69e10a
commit ddcd76c677

View file

@ -377,13 +377,14 @@
<layout>hbox</layout>
<halign>right</halign>
<text>
<label>Snow Level</label>
<enable>
<label>Snow Level</label>
<enable>
<property>/sim/rendering/shader-effects</property>
</enable>
</text>
</text>
<slider>
<enable>
<name>snow-level</name>
<enable>
<property>/sim/rendering/shader-effects</property>
</enable>
<min>0.0</min>
@ -391,10 +392,11 @@
<property>/sim/rendering/snow-level-m</property>
<binding>
<command>dialog-apply</command>
<object-name>snow-level</object-name>
</binding>
</slider>
<text>
<enable>
<enable>
<property>/sim/rendering/shader-effects</property>
</enable>
<label>12345678</label>