Skip to content

Commit 5ba9d53

Browse files
committed
[orx-composition] no fill on open contours
Possible fix for #367
1 parent 70a8692 commit 5ba9d53

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

orx-composition/src/commonMain/kotlin/CompositionDrawer.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,12 @@ class CompositionDrawer(documentBounds: CompositionDimensions = defaultCompositi
416416
shapeNode.miterLimit = miterlimit
417417
shapeNode.lineCap = lineCap
418418
shapeNode.lineJoin = lineJoin
419-
shapeNode.fill = fill
420-
shapeNode.fillOpacity = fillOpacity
419+
if(shape.contours.all { it.closed}) {
420+
shapeNode.fill = fill
421+
shapeNode.fillOpacity = fillOpacity
422+
} else {
423+
shapeNode.fill = null
424+
}
421425

422426
if (insert) {
423427
cursor.children.add(shapeNode)

0 commit comments

Comments
 (0)