mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix an issue where CompoundPath wouldn't draw correctly if children had styles that forced non-direct compositing.
This commit is contained in:
parent
98f2e08775
commit
af5e1609dd
1 changed files with 1 additions and 0 deletions
|
@ -3639,6 +3639,7 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
// Determine if we can draw directly, or if we need to draw into a
|
||||
// separate canvas and then composite onto the main canvas.
|
||||
direct = normalBlend && opacity === 1
|
||||
|| param.dontStart // e.g. CompoundPath
|
||||
|| param.clip
|
||||
// If native blending is possible, see if the item allows it
|
||||
|| (nativeBlend || normalBlend && opacity < 1)
|
||||
|
|
Loading…
Reference in a new issue