OpenToonz - An open-source full-featured 2D animation creation software
C
fix showing preset name
shun_iwasawab5d548dbf063
diff --git a/toonz/sources/tnztools/brushtool.cpp b/toonz/sources/tnztools/brushtool.cppindex d95106f9f..ef3bcff1a 100644--- a/toonz/sources/tnztools/brushtool.cpp+++ b/toonz/sources/tnztools/brushtool.cpp@@ -1398,15 +1398,9 @@ bool BrushTool::onPropertyChanged(string propertyName)m_minThick = m_thickness.getValue().first;m_maxThick = m_thickness.getValue().second;- }-- if (m_preset.getValue() != CUSTOM_WSTR)- m_preset.setValue(CUSTOM_WSTR);-+ }} else if (propertyName == m_accuracy.getName()) {BrushAccuracy = m_accuracy.getValue();- if (m_preset.getValue() != CUSTOM_WSTR)- m_preset.setValue(CUSTOM_WSTR);} else if (propertyName == m_preset.getName()) {loadPreset();notifyTool = true;@@ -1441,7 +1435,7 @@ bool BrushTool::onPropertyChanged(string propertyName)}}- if (m_preset.getValue() != CUSTOM_WSTR) {+ if (propertyName != m_preset.getName() && m_preset.getValue() != CUSTOM_WSTR) {m_preset.setValue(CUSTOM_WSTR);notifyTool = true;}