mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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
|
// first, since otherwise their stroke is drawn half transparent
|
||||||
// over their fill.
|
// over their fill.
|
||||||
if (item._blendMode !== 'normal' || item._opacity < 1
|
if (item._blendMode !== 'normal' || item._opacity < 1
|
||||||
&& !(item._segments
|
&& (item._type !== 'path'
|
||||||
&& (!item.getFillColor() || !item.getStrokeColor()))) {
|
|| item.getFillColor() && item.getStrokeColor())) {
|
||||||
var bounds = item.getStrokeBounds();
|
var bounds = item.getStrokeBounds();
|
||||||
if (!bounds.width || !bounds.height)
|
if (!bounds.width || !bounds.height)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue