1
0
Fork 0

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:
mfranz 2008-12-21 15:54:18 +00:00
parent 74e1db73b1
commit 601f1c14c4
2 changed files with 20 additions and 15 deletions

View file

@ -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();

View file

@ -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>