Skip to content

Commit

Permalink
Skip processing invisible measures
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Jan 14, 2024
1 parent 9d49e6c commit c096c91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neothesia-core/src/render/guidelines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ impl GuidelineRenderer {
let w = f32::MAX;
let h = 1.0;

if y < 0.0 {
break;
}

quads.instances().push(QuadInstance {
position: [x, y],
size: [w, h],
Expand Down

0 comments on commit c096c91

Please sign in to comment.