Browse Source

Fix wrong sort order for indices

ssao
A.Olokhtonov 12 months ago
parent
commit
24222f9565
  1. 2
      client/bvh.js

2
client/bvh.js

@ -219,7 +219,7 @@ function bvh_clip(state, context) { @@ -219,7 +219,7 @@ function bvh_clip(state, context) {
const screen = {'x1': screen_topleft.x, 'y1': screen_topleft.y, 'x2': screen_bottomright.x, 'y2': screen_bottomright.y};
const stroke_indices = bvh_intersect_quad(state.bvh, screen);
stroke_indices.sort();
stroke_indices.sort((a, b) => a - b);
for (const i of stroke_indices) {
if (state.debug.limit_to && i >= state.debug.render_to) break;

Loading…
Cancel
Save