property display: don't choke on nil properties
This commit is contained in:
parent
ba57bd9a2e
commit
ee8b517246
1 changed files with 5 additions and 2 deletions
|
@ -197,8 +197,11 @@ var property_display = {
|
||||||
},
|
},
|
||||||
update : func {
|
update : func {
|
||||||
me.window.lines = [];
|
me.window.lines = [];
|
||||||
foreach (var n; me.nodes)
|
foreach (var n; me.nodes) {
|
||||||
append(me.window.lines, [n.getName() ~ " = " ~ n.getValue(), 1, 1, 0.7, 1]);
|
if ((val = n.getValue()) == nil)
|
||||||
|
val = "nil";
|
||||||
|
append(me.window.lines, [n.getName() ~ " = " ~ val, 1, 1, 0.5, 1]);
|
||||||
|
}
|
||||||
me.window.show();
|
me.window.show();
|
||||||
},
|
},
|
||||||
_loop_ : func(id) {
|
_loop_ : func(id) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue