2
0
Daniel Hritzkiv 8 жил өмнө
parent
commit
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 ) {
 
 			console.warn( 'THREE.' + this.type + ': .shading has been removed. Use the boolean .flatShading instead.' );
-			this.flatShading = value === FlatShading;
+			this.flatShading = ( value === FlatShading );
 
 		}
 	}