Sfoglia il codice sorgente

moved cubes to rotating group to show the effect in the animation

Jaume Sanchez 8 anni fa
parent
commit
b464d65049
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/webgl_loader_imagebitmap.html

+ 1 - 1
examples/webgl_loader_imagebitmap.html

@@ -151,7 +151,7 @@
 				group.add( new THREE.GridHelper( 4, 12 ) );
 				group.add( new THREE.GridHelper( 4, 12 ) );
 
 
 				cubes = new THREE.Group();
 				cubes = new THREE.Group();
-				scene.add( cubes );
+				group.add( cubes );
 
 
 				addImageBitmap();
 				addImageBitmap();
 				addImage();
 				addImage();