1
0
Fork 0

Fix model effects combobox in rendering dialog

This commit is contained in:
Fernando García Liñán 2021-05-09 13:11:14 +02:00
parent 8a94ffa7e1
commit afd8e93ad0

View file

@ -281,14 +281,14 @@
<value>Enabled</value>
<binding>
<command>dialog-apply</command>
<object-name>model-quality</object-name>
<object-name>model-effects</object-name>
</binding>
<binding>
<command>nasal</command>
<script>
var val = getprop("/sim/gui/dialogs/advanced/model-effects");
if (val == "Enabled") {
setprop("/sim/rendering/shaders/model", 1);
setprop("/sim/rendering/shaders/model", 3);
} else {
setprop("/sim/rendering/shaders/model", 0);
}