diff --git a/libxiv b/libxiv index 8139f39..d0e016e 160000 --- a/libxiv +++ b/libxiv @@ -1 +1 @@ -Subproject commit 8139f399fdcfd8b57f5a399ee2aa2d92baa7bf4a +Subproject commit d0e016e5684ab66c29a1bbe688f05fc33b08dad0 diff --git a/mdlviewer/src/mainwindow.cpp b/mdlviewer/src/mainwindow.cpp index a285428..3d995f8 100644 --- a/mdlviewer/src/mainwindow.cpp +++ b/mdlviewer/src/mainwindow.cpp @@ -193,7 +193,13 @@ MainWindow::MainWindow(GameData& data) : data(data) { "model.fbx", tr("FBX Files (*.fbx)")); - exportModel(vkWindow->models[0].model, fileName); + Model model; +#ifdef USE_STANDALONE_WINDOW + model = standaloneWindow->models[0].model; +#else + model = vkWindow->models[0].model; +#endif + exportModel(model, fileName); }); controlLayout->addWidget(exportButton); @@ -226,7 +232,7 @@ void MainWindow::refreshModel() { #ifndef USE_STANDALONE_WINDOW vkWindow->models.push_back(renderer->addModel(parseMDL("top.mdl"), currentLod)); #else - standaloneWindow->models.push_back(renderer->addModel(parseMDL("top.mdl"))); + standaloneWindow->models.push_back(renderer->addModel(parseMDL("top.mdl"), currentLod)); #endif } }