Переглянути джерело

Fix typo in transformcontrols and add additional information

Change depricate to deprecate
Additional information that it is not necessary to call update function anymore
Johannes Deml 6 роки тому
батько
коміт
16abe8f0bc

+ 2 - 2
examples/js/controls/TransformControls.js

@@ -598,7 +598,7 @@ THREE.TransformControls = function ( camera, domElement ) {
 
 	}
 
-	// TODO: depricate
+	// TODO: deprecate
 
 	this.getMode = function () {
 
@@ -638,7 +638,7 @@ THREE.TransformControls = function ( camera, domElement ) {
 
 	this.update = function () {
 
-		console.warn( 'THREE.TransformControls: update function has been depricated.' );
+		console.warn( 'THREE.TransformControls: update function has no more functionality and therefore has been deprecated.' );
 
 	};
 

+ 2 - 2
examples/jsm/controls/TransformControls.js

@@ -623,7 +623,7 @@ var TransformControls = function ( camera, domElement ) {
 
 	}
 
-	// TODO: depricate
+	// TODO: deprecate
 
 	this.getMode = function () {
 
@@ -663,7 +663,7 @@ var TransformControls = function ( camera, domElement ) {
 
 	this.update = function () {
 
-		console.warn( 'THREE.TransformControls: update function has been depricated.' );
+		console.warn( 'THREE.TransformControls: update function has no more functionality and therefore has been deprecated.' );
 
 	};