add noise parameter to the brush settings

This commit is contained in:
2017-11-12 17:02:24 +00:00
parent 5dccd61160
commit e280629cf2
8 changed files with 14 additions and 2 deletions

View File

@@ -490,7 +490,7 @@ void CanvasModeMaskFree::on_MouseEvent(MouseEvent* me, glm::vec2& loc)
void CanvasModeMaskFree::on_Draw(const glm::mat4& ortho, const glm::mat4& proj, const glm::mat4& camera)
{
if (!m_points.empty())
if (m_points.size() > 3)
{
if (m_dragging)
{
@@ -623,7 +623,7 @@ void CanvasModeMaskLine::on_MouseEvent(MouseEvent* me, glm::vec2& loc)
void CanvasModeMaskLine::on_Draw(const glm::mat4& ortho, const glm::mat4& proj, const glm::mat4& camera)
{
if (!m_points.empty())
if (m_points.size() > 3)
{
if (m_active_tool)
{