From b3f3302f5c9953aae6f439123225a3cc4b798a8f Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 20 Apr 2017 10:34:14 -0700 Subject: [PATCH] add accepted file types to baker file pickers --- tools/oven/src/ui/DomainBakeWidget.cpp | 3 ++- tools/oven/src/ui/ModelBakeWidget.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/oven/src/ui/DomainBakeWidget.cpp b/tools/oven/src/ui/DomainBakeWidget.cpp index bfae2d70d4..7d667305bb 100644 --- a/tools/oven/src/ui/DomainBakeWidget.cpp +++ b/tools/oven/src/ui/DomainBakeWidget.cpp @@ -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 diff --git a/tools/oven/src/ui/ModelBakeWidget.cpp b/tools/oven/src/ui/ModelBakeWidget.cpp index 77f92c82e1..7f2a0c74b5 100644 --- a/tools/oven/src/ui/ModelBakeWidget.cpp +++ b/tools/oven/src/ui/ModelBakeWidget.cpp @@ -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