mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Merge pull request #6984 from huffman/fix-edit-import-cancel
Fix 'Import Entities' causing error when cancelling
This commit is contained in:
commit
6927f9f503
1 changed files with 5 additions and 2 deletions
|
@ -1277,9 +1277,12 @@ function handeMenuEvent(menuItem) {
|
|||
}
|
||||
} else if (menuItem == "Import Entities" || menuItem == "Import Entities from URL") {
|
||||
|
||||
var importURL;
|
||||
var importURL = null;
|
||||
if (menuItem == "Import Entities") {
|
||||
importURL = "file:///" + Window.browse("Select models to import", "", "*.json");
|
||||
var fullPath = Window.browse("Select models to import", "", "*.json");
|
||||
if (fullPath) {
|
||||
importURL = "file:///" + fullPath;
|
||||
}
|
||||
} else {
|
||||
importURL = Window.prompt("URL of SVO to import", "");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue