model export: only report success on success :-)
This commit is contained in:
parent
0174df9bd6
commit
ed28a5efda
1 changed files with 2 additions and 2 deletions
|
@ -787,8 +787,8 @@ var export_data = func {
|
|||
var path = getprop("/sim/fg-home") ~ "/Export/ufo-model-export.xml";
|
||||
var args = props.Node.new({ filename : path });
|
||||
props.copy(modelmgr.get_data(), args.getNode("data/models", 1));
|
||||
fgcommand("savexml", args);
|
||||
print("model data exported to ", path);
|
||||
if (fgcommand("savexml", args))
|
||||
print("model data exported to ", path);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue