We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca75fde commit 6a26696Copy full SHA for 6a26696
1 file changed
src/render/Render.js
@@ -643,10 +643,12 @@ var Render = {};
643
}
644
645
} else {
646
- // render a single axis indicator
647
- c.moveTo(body.position.x, body.position.y);
648
- c.lineTo((body.vertices[0].x + body.vertices[body.vertices.length-1].x) / 2,
649
- (body.vertices[0].y + body.vertices[body.vertices.length-1].y) / 2);
+ if (body.parts.length === 1) {
+ // render a single axis indicator
+ c.moveTo(body.position.x, body.position.y);
+ c.lineTo((body.vertices[0].x + body.vertices[body.vertices.length-1].x) / 2,
650
+ (body.vertices[0].y + body.vertices[body.vertices.length-1].y) / 2);
651
+ }
652
653
654
0 commit comments