Skip to content

Commit

Permalink
Update staticcomplexanimator.cpp
Browse files Browse the repository at this point in the history
Adapt to changes in sub-path effect.
  • Loading branch information
rodlie committed Nov 22, 2024
1 parent 713ba4e commit 6e81b66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Animators/staticcomplexanimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ void StaticComplexAnimator::prp_readProperty_impl(eReadStream &src)
{
const auto& children = ca_getChildren();
const auto SVGProperties = QStringList() << "begin event" << "end event";
const bool isSubPathEffect = prp_getName() == "sub-path effect";

for (const auto& prop : children) {
if (src.evFileVersion() < EvFormat::svgBeginEnd &&
SVGProperties.contains(prop->prp_getName())) { continue; }
if (src.evFileVersion() < EvFormat::subPathOffset &&
isSubPathEffect && prop->prp_getName() == "offset") { continue; }
prop->prp_readProperty(src);
}
}
Expand Down

0 comments on commit 6e81b66

Please sign in to comment.