Daniel Hritzkiv %!s(int64=8) %!d(string=hai) anos
pai
achega
f3570b9af2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );
 
 		}
 	}