Ver código fonte

Merge pull request #11514 from spite/fix-imagebitmap-example

Fix imagebitmap example
Mr.doob 8 anos atrás
pai
commit
ceb8807134
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      examples/webgl_loader_imagebitmap.html

+ 3 - 1
examples/webgl_loader_imagebitmap.html

@@ -39,9 +39,11 @@
 				border: 1px solid white;
 				cursor: pointer;
 				white-space: nowrap;
+				user-select: none;
 			}
 			.actions span:hover{
 				color: red;
+				border-color: red;
 			}
 			.actions span:active{
 				color: black;
@@ -151,7 +153,7 @@
 				group.add( new THREE.GridHelper( 4, 12 ) );
 
 				cubes = new THREE.Group();
-				scene.add( cubes );
+				group.add( cubes );
 
 				addImageBitmap();
 				addImage();