Fix model effects combobox in rendering dialog
This commit is contained in:
parent
8a94ffa7e1
commit
afd8e93ad0
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue