Diffusion Krita 2f888b32d70f

Fix NaN values from hairy brushes

Authored by jounip on Dec 11 2017, 4:09 PM.

Description

Fix NaN values from hairy brushes

A hairy brush with ink deplation enabled for opacity, without
weights, would use unitialized data from Bristle::m_inkAmount
which would later get converted from double to float.

Bristle members are now always initialized, and intermediary
values clamped to correct range.

CCBUG: 344437

Details

Committed
jounipDec 11 2017, 4:09 PM
Parents
R37:a6a6626be6e9: Fix erase mode not showing correctly when returning to brush tool
Branches
Unknown
Tags
Unknown