1
0
Fork 0

fix export file format (the <models> tags got lost in one of the last commits)

This commit is contained in:
mfranz 2007-07-01 13:07:08 +00:00
parent f547f4188a
commit d1adc37872

View file

@ -627,7 +627,7 @@ var print_data = func {
var export_data = func {
var path = getprop("/sim/fg-home") ~ "/ufo-model-export.xml";
var args = props.Node.new({ filename : path });
props.copy(modelmgr.get_data(), args.getNode("data", 1));
props.copy(modelmgr.get_data(), args.getNode("data/models", 1));
fgcommand("savexml", args);
print("model data exported to ", path);
}