Mr.doob 10 vuotta sitten
vanhempi
commit
32af28a4b0

+ 7 - 7
examples/js/controls/OrbitControls.js

@@ -805,7 +805,7 @@
 
 				this.constraint.minDistance = value;
 
-			},
+			}
 
 		},
 
@@ -821,7 +821,7 @@
 
 				this.constraint.maxDistance = value;
 
-			},
+			}
 
 		},
 
@@ -837,7 +837,7 @@
 
 				this.constraint.minZoom = value;
 
-			},
+			}
 
 		},
 
@@ -853,7 +853,7 @@
 
 				this.constraint.maxZoom = value;
 
-			},
+			}
 
 		},
 
@@ -869,7 +869,7 @@
 
 				this.constraint.minPolarAngle = value;
 
-			},
+			}
 
 		},
 
@@ -885,7 +885,7 @@
 
 				this.constraint.maxPolarAngle = value;
 
-			},
+			}
 
 		},
 
@@ -901,7 +901,7 @@
 
 				this.constraint.minAzimuthAngle = value;
 
-			},
+			}
 
 		},
 

+ 7 - 7
examples/webgl_animation_skinning_blending.html

@@ -46,7 +46,7 @@
 
 			var container, stats;
 
-			var blendMesh, skeletonHelper, camera, scene, renderer, controls;
+			var blendMesh, helper, camera, scene, renderer, controls;
 
 			var clock = new THREE.Clock();
 			var gui = null;
@@ -186,7 +186,7 @@
 			function onShowSkeleton( event ) {
 
 				var shouldShow = event.detail.shouldShow;
-				skeletonHelper.visible = shouldShow;
+				helper.visible = shouldShow;
 
 			}
 
@@ -222,11 +222,11 @@
 
 				// Create the debug visualization
 
-				skeletonHelper = new THREE.SkeletonHelper( blendMesh );
-				skeletonHelper.material.linewidth = 3;
-				scene.add( skeletonHelper );
+				helper = new THREE.SkeletonHelper( blendMesh );
+				helper.material.linewidth = 3;
+				scene.add( helper );
 
-				skeletonHelper.visible = false;
+				helper.visible = false;
 
 				animate();
 			}
@@ -244,7 +244,7 @@
 				// modify blend weights
 
 				blendMesh.update( stepSize );
-				skeletonHelper.update();
+				helper.update();
 				gui.update();
 
 				THREE.AnimationHandler.update( stepSize );