From 49b930c7811deabb0f22f16bbe3154c98b7695d2 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Fri, 13 Oct 2023 21:05:59 -0700 Subject: [PATCH] js: Update simplifyPoints in .module.js to new signature --- js/meshopt_simplifier.module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/meshopt_simplifier.module.js b/js/meshopt_simplifier.module.js index d5413f1a5..df73f624b 100644 --- a/js/meshopt_simplifier.module.js +++ b/js/meshopt_simplifier.module.js @@ -222,7 +222,7 @@ var MeshoptSimplifier = (function() { return simplifyScale(instance.exports.meshopt_simplifyScale, vertex_positions, vertex_positions.length / vertex_positions_stride, vertex_positions_stride * 4); }, - simplifyPoints: function(vertex_positions, vertex_positions_stride, vertex_colors, vertex_colors_stride, color_weight, target_vertex_count) { + simplifyPoints: function(vertex_positions, vertex_positions_stride, target_vertex_count, vertex_colors, vertex_colors_stride, color_weight) { assert(vertex_positions instanceof Float32Array); assert(vertex_positions.length % vertex_positions_stride == 0); assert(vertex_positions_stride >= 3);