Skip to content

Commit

Permalink
SVG Export: add 'fill-rule' if path is 'even-odd'
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Jul 1, 2024
1 parent fbd03d8 commit 4766029
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/Animators/SmartPath/smartpathcollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ void SmartPathCollection::savePathsSVG(SvgExporter& exp,
const EffectApplier& applier,
const bool forceDumbIncrement,
const FrameRange& visRange,
QList<Animator*> const extInfl) {
QList<Animator*> const extInfl)
{
if (mFillType == SkPathFillType::kEvenOdd) {
parent.setAttribute("fill-rule", "evenodd");
}
if(!forceDumbIncrement && ca_getNumberOfChildren() == 1) {
const auto path0 = getChild(0);
path0->graph_saveSVG(exp, parent, visRange, "d",
Expand Down

0 comments on commit 4766029

Please sign in to comment.