File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -313,9 +313,20 @@ static CompositionShape TranslateShapeLayerContents(
313
313
return CanvasGeometryCombiner . CombineGeometries ( geometries , combineMode ) ;
314
314
#else
315
315
var accumulator = geometries [ 0 ] ;
316
- for ( var i = 1 ; i < geometries . Length ; i ++ )
316
+ if ( combineMode == CanvasGeometryCombine . Exclude )
317
317
{
318
- accumulator = accumulator . CombineWith ( geometries [ i ] , Sn . Matrix3x2 . Identity , combineMode ) ;
318
+ // TODO: investiagte how it works for 3+ layers with Exclude mode
319
+ for ( var i = 1 ; i < geometries . Length ; i ++ )
320
+ {
321
+ accumulator = geometries [ i ] . CombineWith ( accumulator , Sn . Matrix3x2 . Identity , combineMode ) ;
322
+ }
323
+ }
324
+ else
325
+ {
326
+ for ( var i = 1 ; i < geometries . Length ; i ++ )
327
+ {
328
+ accumulator = accumulator . CombineWith ( geometries [ i ] , Sn . Matrix3x2 . Identity , combineMode ) ;
329
+ }
319
330
}
320
331
321
332
return accumulator ;
You can’t perform that action at this time.
0 commit comments