mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:09:24 +02:00
Remember location of model file last selected
This commit is contained in:
parent
f87a83f79e
commit
ef8ce8ad7d
1 changed files with 4 additions and 1 deletions
|
@ -396,8 +396,11 @@ var toolBar = (function () {
|
||||||
|
|
||||||
if (clickedOverlay === loadFileMenuItem) {
|
if (clickedOverlay === loadFileMenuItem) {
|
||||||
toggleToolbar(false);
|
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) {
|
if (file !== null) {
|
||||||
|
Settings.setValue("LastModelUploadLocation", file);
|
||||||
modelUploader.upload(file, addModel);
|
modelUploader.upload(file, addModel);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue