未验证 提交 208233d0 编写于 作者: A AKI RODIC 提交者: GitHub

Removed unused loop from TransformControls.

上级 bced02a8
......@@ -1324,12 +1324,10 @@ THREE.TransformControlsGizmo = function () {
}
// Hide disabled axes
for ( var a in handle.name ) {
handle.visible = handle.visible && ( handle.name.indexOf( "X" ) === -1 || this.showX );
handle.visible = handle.visible && ( handle.name.indexOf( "Y" ) === -1 || this.showY );
handle.visible = handle.visible && ( handle.name.indexOf( "Z" ) === -1 || this.showZ );
handle.visible = handle.visible && ( handle.name.indexOf( "E" ) === -1 || ( this.showX && this.showY && this.showZ ) );
}
handle.visible = handle.visible && ( handle.name.indexOf( "X" ) === -1 || this.showX );
handle.visible = handle.visible && ( handle.name.indexOf( "Y" ) === -1 || this.showY );
handle.visible = handle.visible && ( handle.name.indexOf( "Z" ) === -1 || this.showZ );
handle.visible = handle.visible && ( handle.name.indexOf( "E" ) === -1 || ( this.showX && this.showY && this.showZ ) );
// highlight selected axis
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册