Skip to content

Commit

Permalink
Fix FMI exports for models without HMF extension
Browse files Browse the repository at this point in the history
  • Loading branch information
robbr48 committed May 27, 2024
1 parent 85e4503 commit 1a62516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HopsanGUI/GUIObjects/GUIContainerObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3388,7 +3388,7 @@ void SystemObject::exportToFMU(QString savePath, int version, ArchitectureEnumT
}

//Save model to hmf in export directory
mpModelWidget->saveTo(savePath+"/"+mModelFileInfo.fileName().replace(" ", "_"));
mpModelWidget->saveTo(savePath+"/"+mModelFileInfo.completeBaseName().replace(" ", "_")+".hmf");

auto spGenerator = createDefaultExportGenerator();
spGenerator->setCompilerPath(gpConfig->getCompilerPath(arch));
Expand Down

0 comments on commit 1a62516

Please sign in to comment.