From 36b85d6e331921a8d4a7f0e67d1673d293e702e9 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 30 Jun 2021 10:07:54 +0200 Subject: [PATCH] Updated examples builds --- examples/js/modifiers/SimplifyModifier.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/js/modifiers/SimplifyModifier.js b/examples/js/modifiers/SimplifyModifier.js index 7b94adc302..81e33cb707 100644 --- a/examples/js/modifiers/SimplifyModifier.js +++ b/examples/js/modifiers/SimplifyModifier.js @@ -120,8 +120,8 @@ for ( let i = 0; i < vertices.length; i ++ ) { const vertex = vertices[ i ].position; - position.push( vertex.x, vertex.y, vertex.z ); - // cache final index to GREATLY speed up faces reconstruction + position.push( vertex.x, vertex.y, vertex.z ); // cache final index to GREATLY speed up faces reconstruction + vertices[ i ].id = i; } // @@ -442,8 +442,7 @@ constructor( v ) { this.position = v; - - this.id = -1; // external use position in vertices list (for e.g. face generation) + this.id = - 1; // external use position in vertices list (for e.g. face generation) this.faces = []; // faces vertex is connected -- GitLab