File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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};
You can’t perform that action at this time.
0 commit comments