mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fall back to Item#bounds if the Item doesn't have Item#strokeBounds in Item#draw.
This commit is contained in:
parent
02943c4190
commit
00bf9aa88c
1 changed files with 1 additions and 1 deletions
|
@ -726,7 +726,7 @@ var Item = Base.extend({
|
|||
if (item.blendMode !== 'normal'
|
||||
|| item.opacity < 1
|
||||
&& !(item.segments && (!item.fillColor || !item.strokeColor))) {
|
||||
var bounds = item.strokeBounds;
|
||||
var bounds = item.strokeBounds || item.bounds;
|
||||
if (!bounds.width || !bounds.height)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue