Browse Source

SimplifyModifier: Fix missing import (#28763)

yfunk 1 year ago
parent
commit
315e8be785
1 changed files with 2 additions and 1 deletions
  1. 2 1
      examples/jsm/modifiers/SimplifyModifier.js

+ 2 - 1
examples/jsm/modifiers/SimplifyModifier.js

@@ -1,5 +1,6 @@
 import {
 	BufferGeometry,
+	Color,
 	Float32BufferAttribute,
 	Vector2,
 	Vector3,
@@ -81,7 +82,7 @@ class SimplifyModifier {
 
 			if ( colorAttribute ) {
 
-				col = new THREE.Color().fromBufferAttribute( colorAttribute, i );
+				col = new Color().fromBufferAttribute( colorAttribute, i );
 
 			}