Fix an issue where CompoundPath wouldn't draw correctly if children had styles that forced non-direct compositing.

This commit is contained in:
Jürg Lehni 2014-05-15 17:09:58 +02:00
parent 98f2e08775
commit af5e1609dd

View file

@ -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)