Skip to content

Commit

Permalink
fix: Respect artboard clip value (#2639)
Browse files Browse the repository at this point in the history
Adds a check for the artboard's clip value before actually clipping
  • Loading branch information
zacherygentry authored Aug 7, 2023
1 parent 1c4d6cd commit 4e66424
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/flame_rive/lib/src/rive_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ class RiveArtboardRenderer {
var scaleY = 1.0;

canvas.save();
canvas.clipRect(position & size);
if (artboard.clip) {
canvas.clipRect(position & size);
}

switch (fit) {
case BoxFit.fill:
Expand Down

0 comments on commit 4e66424

Please sign in to comment.