Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: renderChain should allow open-ended chain drawing #1804

Merged
merged 2 commits into from Jul 18, 2022

Conversation

aeb-dev
Copy link
Contributor

@aeb-dev aeb-dev commented Jul 18, 2022

Description

Checklist

  • The title of my PR starts with a [Conventional Commit] prefix (fix:, feat:, docs: etc).
  • I have read the [Contributor Guide] and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Related Issues

fixes: #1803

@@ -125,8 +125,7 @@ abstract class BodyComponent<T extends Forge2DGame> extends Component
}

void renderChain(Canvas canvas, List<Offset> points) {
final path = Path()..addPolygon(points, true);
canvas.drawPath(path, paint);
canvas.drawPoints(PointMode.polygon, points, paint);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this will also be more efficient than the previous way.

@spydon spydon merged commit 60daa19 into flame-engine:main Jul 18, 2022
@aeb-dev aeb-dev deleted the aeb-dev branch July 18, 2022 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

renderChain should allow open-ended chain drawing
2 participants