mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 03:38:28 +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) {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue