Przeglądaj źródła

Fixed example that relied on redefining mesh.scale.

Mr.doob 11 lat temu
rodzic
commit
a40606298d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      examples/webgl_loader_ctm_materials.html

+ 2 - 2
examples/webgl_loader_ctm_materials.html

@@ -190,8 +190,8 @@
 					for ( var i = 0; i < geometries.length; i ++ ) {
 
 						var mesh = new THREE.Mesh( geometries[ i ], materials[ i ] );
-						mesh.position = position;
-						mesh.scale = scale;
+						mesh.position.copy( position );
+						mesh.scale.copy( scale );
 						scene.add( mesh );
 
 					}