浏览代码

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 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      examples/js/controls/TransformControls.js
  2. 2 2
      examples/jsm/controls/TransformControls.js

+ 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.' );
 
 	};