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:
parent
564c69e10a
commit
ddcd76c677
1 changed files with 7 additions and 5 deletions
|
@ -377,13 +377,14 @@
|
||||||
<layout>hbox</layout>
|
<layout>hbox</layout>
|
||||||
<halign>right</halign>
|
<halign>right</halign>
|
||||||
<text>
|
<text>
|
||||||
<label>Snow Level</label>
|
<label>Snow Level</label>
|
||||||
<enable>
|
<enable>
|
||||||
<property>/sim/rendering/shader-effects</property>
|
<property>/sim/rendering/shader-effects</property>
|
||||||
</enable>
|
</enable>
|
||||||
</text>
|
</text>
|
||||||
<slider>
|
<slider>
|
||||||
<enable>
|
<name>snow-level</name>
|
||||||
|
<enable>
|
||||||
<property>/sim/rendering/shader-effects</property>
|
<property>/sim/rendering/shader-effects</property>
|
||||||
</enable>
|
</enable>
|
||||||
<min>0.0</min>
|
<min>0.0</min>
|
||||||
|
@ -391,10 +392,11 @@
|
||||||
<property>/sim/rendering/snow-level-m</property>
|
<property>/sim/rendering/snow-level-m</property>
|
||||||
<binding>
|
<binding>
|
||||||
<command>dialog-apply</command>
|
<command>dialog-apply</command>
|
||||||
|
<object-name>snow-level</object-name>
|
||||||
</binding>
|
</binding>
|
||||||
</slider>
|
</slider>
|
||||||
<text>
|
<text>
|
||||||
<enable>
|
<enable>
|
||||||
<property>/sim/rendering/shader-effects</property>
|
<property>/sim/rendering/shader-effects</property>
|
||||||
</enable>
|
</enable>
|
||||||
<label>12345678</label>
|
<label>12345678</label>
|
||||||
|
|
Loading…
Reference in a new issue