Remember location of model file last selected

This commit is contained in:
David Rowe 2014-07-21 21:39:52 -07:00
parent f87a83f79e
commit ef8ce8ad7d

View file

@ -396,8 +396,11 @@ var toolBar = (function () {
if (clickedOverlay === loadFileMenuItem) {
toggleToolbar(false);
file = Window.browse("Select your model file ...", "", "Model files (*.fst *.fbx *.svo)");
file = Window.browse("Select your model file ...",
Settings.getValue("LastModelUploadLocation").path(),
"Model files (*.fst *.fbx *.svo)");
if (file !== null) {
Settings.setValue("LastModelUploadLocation", file);
modelUploader.upload(file, addModel);
}
return true;