浏览代码

Formatting

Daniel Hritzkiv 8 年之前
父节点
当前提交
f3570b9af2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Three.Legacy.js

+ 1 - 1
src/Three.Legacy.js

@@ -1047,7 +1047,7 @@ Object.defineProperties( Material.prototype, {
 		set: function ( value ) {
 		set: function ( value ) {
 
 
 			console.warn( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' );
 			console.warn( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' );
-			this.flatShading = value === FlatShading;
+			this.flatShading = ( value === FlatShading );
 
 
 		}
 		}
 	}
 	}