瀏覽代碼

Merge pull request #12996 from gero3/patch-8

Make sure variable is declared in correct scope
Mr.doob 7 年之前
父節點
當前提交
703fa053ce
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/webgl_geometry_extrude_shapes2.html
  2. 1 1
      examples/webgl_postprocessing_pixel.html

+ 1 - 1
examples/webgl_geometry_extrude_shapes2.html

@@ -305,7 +305,7 @@
 
 					for ( var j = 0; j < simpleShapes.length; j ++ ) {
 
-						simpleShape = simpleShapes[ j ];
+						var simpleShape = simpleShapes[ j ];
 						var shape3d = new THREE.ExtrudeBufferGeometry( simpleShape, {
 							amount: amount,
 							bevelEnabled: false

+ 1 - 1
examples/webgl_postprocessing_pixel.html

@@ -54,7 +54,7 @@
 
 		<script>
 
-			var camera, scene, renderer, gui, composer;
+			var camera, scene, renderer, gui, composer,controls;
 			var pixelPass, params;
 
 			var group;