Skip to content

Commit dafd38d

Browse files
GLTFViewer and USDViewer: use FILE_DIALOG_SUPPORTED macros
1 parent 46db841 commit dafd38d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Samples/GLTFViewer/src/GLTFViewer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ void GLTFViewer::UpdateUI()
817817
LoadModel(m_Models[m_SelectedModel].Path.c_str());
818818
}
819819
}
820-
#ifdef PLATFORM_WIN32
820+
#if FILE_DIALOG_SUPPORTED
821821
if (ImGui::Button("Load model"))
822822
{
823823
FileDialogAttribs OpenDialogAttribs{FILE_DIALOG_TYPE_OPEN};
@@ -839,8 +839,8 @@ void GLTFViewer::UpdateUI()
839839
if (!FileName.empty())
840840
LoadEnvironmentMap(FileName.data());
841841
}
842-
843842
#endif
843+
844844
if (m_Model->Scenes.size() > 1)
845845
{
846846
std::vector<std::pair<Uint32, std::string>> SceneList;

Samples/USDViewer/src/USDViewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ void USDViewer::UpdateUI()
661661
}
662662
}
663663

664-
#ifdef PLATFORM_WIN32
664+
#if FILE_DIALOG_SUPPORTED
665665
if (ImGui::Button("Load model"))
666666
{
667667
FileDialogAttribs OpenDialogAttribs{FILE_DIALOG_TYPE_OPEN};

0 commit comments

Comments
 (0)