add accepted file types to baker file pickers

This commit is contained in:
Stephen Birarda 2017-04-20 10:34:14 -07:00
parent b520640fef
commit b3f3302f5c
2 changed files with 3 additions and 2 deletions

View file

@ -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

View 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