mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 22:27:13 +02:00
add accepted file types to baker file pickers
This commit is contained in:
parent
b520640fef
commit
b3f3302f5c
2 changed files with 3 additions and 2 deletions
|
@ -149,7 +149,8 @@ void DomainBakeWidget::chooseFileButtonClicked() {
|
|||
startDir = QDir::homePath();
|
||||
}
|
||||
|
||||
auto selectedFile = QFileDialog::getOpenFileName(this, "Choose Entities File", startDir);
|
||||
auto selectedFile = QFileDialog::getOpenFileName(this, "Choose Entities File", startDir,
|
||||
"Entities File (*.json *.gz)");
|
||||
|
||||
if (!selectedFile.isEmpty()) {
|
||||
// set the contents of the entities file text box to be the path to the selected file
|
||||
|
|
|
@ -113,7 +113,7 @@ void ModelBakeWidget::chooseFileButtonClicked() {
|
|||
startDir = QDir::homePath();
|
||||
}
|
||||
|
||||
auto selectedFiles = QFileDialog::getOpenFileNames(this, "Choose Model", startDir);
|
||||
auto selectedFiles = QFileDialog::getOpenFileNames(this, "Choose Model", startDir, "Models (*.fbx)");
|
||||
|
||||
if (!selectedFiles.isEmpty()) {
|
||||
// set the contents of the model file text box to be the path to the selected file
|
||||
|
|
Loading…
Reference in a new issue