Browse Source

BoxHelper: Added return statement to .setFromObject()

Mugen87 8 năm trước cách đây
mục cha
commit
01e22b9cec

+ 1 - 1
docs/api/helpers/BoxHelper.html

@@ -60,7 +60,7 @@
 			of the object, including any children. See [page:Box3.setFromObject].
 			of the object, including any children. See [page:Box3.setFromObject].
 		</div>
 		</div>
 
 
-		<h3>[method:null setFromObject]( [page:Object3D object] )</h3>
+		<h3>[method:BoxHelper setFromObject]( [page:Object3D object] )</h3>
 		<div>
 		<div>
 			[page:Object3D object] - [page:Object3D] to create the helper of.<br /><br />
 			[page:Object3D object] - [page:Object3D] to create the helper of.<br /><br />
 
 

+ 2 - 0
src/helpers/BoxHelper.js

@@ -97,6 +97,8 @@ BoxHelper.prototype.setFromObject = function ( object ) {
 	this.object = object;
 	this.object = object;
 	this.update();
 	this.update();
 
 
+	return this;
+
 };
 };