فهرست منبع

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;