Browse Source

TransformControls: Clean up.

Mr.doob 7 years ago
parent
commit
0721987ac6
1 changed files with 1 additions and 2 deletions
  1. 1 2
      examples/js/controls/TransformControls.js

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

@@ -136,8 +136,7 @@
 
 						object.name = name;
 
-						//avoid being hidden by other transparent objects
-						object.renderOrder = Infinity;
+						object.renderOrder = Infinity; // avoid being hidden by other transparent objects
 
 						if ( position ) object.position.set( position[ 0 ], position[ 1 ], position[ 2 ] );
 						if ( rotation ) object.rotation.set( rotation[ 0 ], rotation[ 1 ], rotation[ 2 ] );