Skip to content

Commit

Permalink
move get strokeData after applying effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Hparty committed Nov 11, 2024
1 parent d524ef0 commit b434229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rendering/renderers/ShapeRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,6 @@ void ApplyStrokeToPath(tgfx::Path* path, const StrokePaint& stroke) {
effects.emplace_back(std::move(dashEffect));
}
}
auto strokeData = stroke.getStroke();
auto applyMatrix = false;
if (!stroke.matrix.isIdentity()) {
auto matrix = tgfx::Matrix::I();
Expand All @@ -847,6 +846,7 @@ void ApplyStrokeToPath(tgfx::Path* path, const StrokePaint& stroke) {
for (const auto& effect : effects) {
effect->filterPath(path);
}
auto strokeData = stroke.getStroke();
strokeData.applyToPath(path);
if (applyMatrix) {
path->transform(stroke.matrix);
Expand Down

0 comments on commit b434229

Please sign in to comment.