Forráskód Böngészése

SimplifyModifier: Fix missing import (#28763)

yfunk 1 éve
szülő
commit
3b935a4195
1 módosított fájl, 2 hozzáadás és 1 törlés
  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 );
 
 			}