Skip to content

Commit

Permalink
Merge pull request #3112 from lottielab/fix/radial-gradient-inner-cir…
Browse files Browse the repository at this point in the history
…cle-desync-upstream

fix: Avoid desync between start and end (outer and inner) radial gradient circles
  • Loading branch information
AliT3 authored Oct 29, 2024
2 parents 0d658b3 + e5b6c2e commit 9f9b026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/js/elements/helpers/shapes/SVGElementsRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const SVGElementsRenderer = (function () {
itemData.of.setAttribute('r', rad);
}
}
if (itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
if (!rad) {
rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
}
Expand Down

0 comments on commit 9f9b026

Please sign in to comment.