Skip to content

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

C

Set the max value to 500 of smooth in toonzrasterbrush tool and make it a int property

Abel Youf3e6a2a15263
diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.cpp b/toonz/sources/tnztools/toonzrasterbrushtool.cpp
index cb561cf6d..aba390976 100644
--- a/toonz/sources/tnztools/toonzrasterbrushtool.cpp
+++ b/toonz/sources/tnztools/toonzrasterbrushtool.cpp
@@ -731,7 +731,7 @@ static void Smooth(std::vector<TThickPoint> &points, const int radius,
ToonzRasterBrushTool::ToonzRasterBrushTool(std::string name, int targetType)
: TTool(name)
, m_rasThickness("Size", 1, 1000, 1, 5)
- , m_smooth("Smooth:", 0, 50, 0)
+ , m_smooth("Smooth:", 0, 500, 0)
, m_hardness("Hardness:", 0, 100, 100)
, m_preset("Preset:")
, m_drawOrder("Draw Order:")
@@ -1054,7 +1054,7 @@ bool ToonzRasterBrushTool::askWrite(const TRect &rect) {
//---------------------------------------------------------------------------------------------------
void ToonzRasterBrushTool::updateModifiers() {
- int smoothRadius = (int)round(m_smooth.getValue());
+ int smoothRadius = m_smooth.getValue();
m_modifierAssistants->magnetism = m_assistants.getValue() ? 1 : 0;
m_inputmanager.drawPreview = false; //! m_modifierAssistants->drawOnly;
diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.h b/toonz/sources/tnztools/toonzrasterbrushtool.h
index b53a8fb58..d36db8817 100644
--- a/toonz/sources/tnztools/toonzrasterbrushtool.h
+++ b/toonz/sources/tnztools/toonzrasterbrushtool.h
@@ -249,7 +249,7 @@ protected:
TPropertyGroup m_prop[2];
TDoublePairProperty m_rasThickness;
- TDoubleProperty m_smooth;
+ TIntProperty m_smooth;
TDoubleProperty m_hardness;
TEnumProperty m_preset;
TEnumProperty m_drawOrder;