@@ -6,7 +6,7 @@
THREE.BoundingBoxHelper = function ( object, hex ) {
- var color = hex || 0x888888;
+ var color = ( hex !== undefined ) ? hex : 0x888888;
this.object = object;
@@ -7,11 +7,11 @@ THREE.FaceNormalsHelper = function ( object, size, hex, linewidth ) {
- this.size = size || 1;
+ this.size = ( size !== undefined ) ? size : 1;
- var color = hex || 0xffff00;
+ var color = ( hex !== undefined ) ? hex : 0xffff00;
- var width = linewidth || 1;
+ var width = ( linewidth !== undefined ) ? linewidth : 1;
var geometry = new THREE.Geometry();
@@ -7,11 +7,11 @@ THREE.VertexNormalsHelper = function ( object, size, hex, linewidth ) {
- var color = hex || 0xff0000;
+ var color = ( hex !== undefined ) ? hex : 0xff0000;
@@ -7,11 +7,11 @@ THREE.VertexTangentsHelper = function ( object, size, hex, linewidth ) {
- var color = hex || 0x0000ff;
+ var color = ( hex !== undefined ) ? hex : 0x0000ff;