From 0568f423b53eec08e0e8b6a4cae7f07ace892816 Mon Sep 17 00:00:00 2001 From: shun-iwasawa Date: Oct 18 2018 05:18:23 +0000 Subject: fix toonzraster mypaint line with mouse (#2332) --- diff --git a/toonz/sources/tnztools/toonzrasterbrushtool.cpp b/toonz/sources/tnztools/toonzrasterbrushtool.cpp index af5316c..2425c38 100644 --- a/toonz/sources/tnztools/toonzrasterbrushtool.cpp +++ b/toonz/sources/tnztools/toonzrasterbrushtool.cpp @@ -1477,7 +1477,8 @@ void ToonzRasterBrushTool::leftButtonUp(const TPointD &pos, if (!isValid) { return; } - finishRasterBrush(pos, e.m_pressure); + double pressure = m_pressure.getValue() && e.isTablet() ? e.m_pressure : 0.5; + finishRasterBrush(pos, pressure); } //---------------------------------------------------------------------------------------------------------------