mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Simplify code that checks for the need of opacity buffering a bit.
This commit is contained in:
parent
e7d9699999
commit
f90ceb06b3
1 changed files with 2 additions and 2 deletions
|
@ -2458,8 +2458,8 @@ function(name) {
|
|||
// first, since otherwise their stroke is drawn half transparent
|
||||
// over their fill.
|
||||
if (item._blendMode !== 'normal' || item._opacity < 1
|
||||
&& !(item._segments
|
||||
&& (!item.getFillColor() || !item.getStrokeColor()))) {
|
||||
&& (item._type !== 'path'
|
||||
|| item.getFillColor() && item.getStrokeColor())) {
|
||||
var bounds = item.getStrokeBounds();
|
||||
if (!bounds.width || !bounds.height)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue