From 0dd6ac6e028da2fd53556fe63865c88af878abb4 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Fri, 4 Mar 2022 23:59:02 -0500 Subject: [PATCH] Fix calibration data save path --- toonz/sources/stopmotion/stopmotioncontroller.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/toonz/sources/stopmotion/stopmotioncontroller.cpp b/toonz/sources/stopmotion/stopmotioncontroller.cpp index a7ebe0b9..60343b14 100644 --- a/toonz/sources/stopmotion/stopmotioncontroller.cpp +++ b/toonz/sources/stopmotion/stopmotioncontroller.cpp @@ -4205,9 +4205,10 @@ QString StopMotionController::getCurrentCalibFilePath() { if (cameraName.isEmpty()) return QString(); QString resolution = m_resolutionCombo->currentText(); QString hostName = QHostInfo::localHostName(); - TFilePath folderPath = ToonzFolder::getLibraryFolder() + "camera calibration"; - return folderPath.getQString() + "\\" + hostName + "_" + cameraName + "_" + - resolution + ".xml"; + QString fileName = hostName + "_" + cameraName + "_" + resolution + ".xml"; + TFilePath folderPath = ToonzFolder::getLibraryFolder() + + "camera calibration" + TFilePath(fileName); + return folderPath.getQString(); } //-----------------------------------------------------------------------------