File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -817,7 +817,7 @@ void GLTFViewer::UpdateUI()
817
817
LoadModel (m_Models[m_SelectedModel].Path .c_str ());
818
818
}
819
819
}
820
- #ifdef PLATFORM_WIN32
820
+ #if FILE_DIALOG_SUPPORTED
821
821
if (ImGui::Button (" Load model" ))
822
822
{
823
823
FileDialogAttribs OpenDialogAttribs{FILE_DIALOG_TYPE_OPEN};
@@ -839,8 +839,8 @@ void GLTFViewer::UpdateUI()
839
839
if (!FileName.empty ())
840
840
LoadEnvironmentMap (FileName.data ());
841
841
}
842
-
843
842
#endif
843
+
844
844
if (m_Model->Scenes .size () > 1 )
845
845
{
846
846
std::vector<std::pair<Uint32, std::string>> SceneList;
Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ void USDViewer::UpdateUI()
661
661
}
662
662
}
663
663
664
- #ifdef PLATFORM_WIN32
664
+ #if FILE_DIALOG_SUPPORTED
665
665
if (ImGui::Button (" Load model" ))
666
666
{
667
667
FileDialogAttribs OpenDialogAttribs{FILE_DIALOG_TYPE_OPEN};
You can’t perform that action at this time.
0 commit comments