1
0
Fork 0

model export: only report success on success :-)

This commit is contained in:
mfranz 2009-03-06 20:47:44 +00:00
parent 0174df9bd6
commit ed28a5efda

View file

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