Skip to content

Commit

Permalink
Handle NaN in PLS paths and transforms
Browse files Browse the repository at this point in the history
Remove an assertion from Mat2D::mapBoundingBox() and instead make it explicitly return {0} when the points are empty or all NaN.

Introduce a "clipIsEmpty" boolean to the render stack so we can bail from draws early when the clip has NaN or empty paths. In the future we can take further advantage of this feature by marking the clip stack empty when its elements have an empty intersection.

Diffs=
7d0125c92 Handle NaN in PLS paths and transforms (#7176)
  • Loading branch information
csmartdalton committed May 1, 2024
1 parent e93ecfa commit 5248a0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rive_head
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e96739328b7eb82870c5a642f6e3213c7b423d51
7d0125c9256d329a11844184e6cd1244f3496012
2 changes: 1 addition & 1 deletion .rive_renderer
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d0bfcdc894a3696b269f317b7ebe14357c7eff49
300ea32b1b2badfcd66db4608a8cf4be0e731238
2 changes: 1 addition & 1 deletion submodules/rive-cpp

0 comments on commit 5248a0f

Please sign in to comment.