Stuart BUCHANAN: fix METAR cloud interpolation
"I've managed to fix this by differentiating rebuilding the 3D layers (e.g. due to METAR updates) from rebuilding the entire environment (due to a change in scenario)." /me: property-browser.xml: drop a redundant line
This commit is contained in:
parent
74e1db73b1
commit
601f1c14c4
2 changed files with 20 additions and 15 deletions
|
@ -175,8 +175,7 @@
|
|||
var clone = func(startdir) {
|
||||
var base = props.globals.getNode("/sim/gui/dialogs", 1);
|
||||
var name = "property-browser-";
|
||||
var i = nil;
|
||||
for (i = 1; 1; i += 1)
|
||||
for (var i = 1; 1; i += 1)
|
||||
if (base.getNode(name ~ i, 0) == nil)
|
||||
break;
|
||||
base = base.getNode(name ~ i, 1).getPath();
|
||||
|
|
|
@ -28,15 +28,6 @@
|
|||
<value>Thunderstorm</value>
|
||||
<value>METAR</value>
|
||||
<value>none</value>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
<script>
|
||||
setprop("/environment/rebuild-layers", getprop("/environment/rebuild-layers")+1);
|
||||
</script>
|
||||
</binding>
|
||||
</combo>
|
||||
</group>
|
||||
|
||||
|
@ -58,15 +49,30 @@
|
|||
|
||||
<group>
|
||||
<layout>hbox</layout>
|
||||
|
||||
<empty><stretch>true</stretch></empty>
|
||||
|
||||
<button>
|
||||
<legend>OK</legend>
|
||||
<default>true</default>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<legend>Apply</legend>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
</button>
|
||||
|
||||
<button>
|
||||
<legend>Close</legend>
|
||||
<default>true</default>
|
||||
<key>Esc</key>
|
||||
<binding>
|
||||
<command>dialog-apply</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
</binding>
|
||||
|
|
Loading…
Reference in a new issue