Skip to content

Commit

Permalink
Fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetsuro Sakamoto committed Oct 6, 2023
1 parent 1581a90 commit 81b95db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ <h2>Contacts</h2>

// Draw inner ray
const notHitAperture = -this.effectiveLensRadius < ty && ty < this.effectiveLensRadius
if (notHitAperture || !this.options.useIdealLens) {
if (notHitAperture || (this.options.showLens && !this.options.useIdealLens)) {

if (!this.options.showBody) {
drawSegment(ctx, tx, ty, tx + this.maxR * Math.cos(phi), ty + this.maxR * Math.sin(phi));
Expand Down

0 comments on commit 81b95db

Please sign in to comment.