Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix enabling color calibration without a LUT

Rodneyde05f0a4dc5a
diff --git a/toonz/sources/toonzqt/lutcalibrator.cpp b/toonz/sources/toonzqt/lutcalibrator.cpp
index 7121d2fc0..fe5d724d0 100644
--- a/toonz/sources/toonzqt/lutcalibrator.cpp
+++ b/toonz/sources/toonzqt/lutcalibrator.cpp
@@ -892,9 +892,9 @@ void LutManager::update() {
// obtain 3dlut path associated to the monitor name
QString lutPath =
Preferences::instance()->getColorCalibrationLutPath(monitorName);
- if (m_currentLutPath == lutPath)
+ if (!lutPath.isEmpty() && m_currentLutPath == lutPath && m_lut.data)
m_isValid = true;
- else if (loadLutFile(lutPath)) {
+ else if (!lutPath.isEmpty() && loadLutFile(lutPath)) {
m_isValid = true;
m_currentLutPath = lutPath;
textureChanged = true;