OSDN Git Service

brushlib: fix bug with smudge_length=0
authorMartin Renold <martinxyz@gmx.ch>
Fri, 28 Oct 2011 17:25:17 +0000 (19:25 +0200)
committerMartin Renold <martinxyz@gmx.ch>
Fri, 28 Oct 2011 17:34:56 +0000 (19:34 +0200)
commit325fcf93a14b84254d46974e5607f8c3911affa3
treee29131964a64a903922fa455c4b1e080b3250de3
parent18dcf948a875fa6e5a0c745ff4848ba3f27c02d5
brushlib: fix bug with smudge_length=0

For brushes with smudge_length=0 (eg. in Ramon's concept art brushset)
smudging was broken by my optimization 5dd46ce. For performance reasons
we force smudge_length to be greater than 0.01 now.

Ramon's concept art brushset uses a tiny smudge radius, so neither
this commit nor my previous one affects their performance.

Reminder to brush creators: increasing smudge_length does improve
brush performance with the new code. Instead of using a tiny
smudge radius (which can result in faster-than-expected smudge
color changes) you can use a normal smudge radius and increase
smudge_length instead to get performance.
brushlib/brush.hpp