Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 7, 2017
1 parent f68d7f1 commit 0df6403
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 126 deletions.
22 changes: 10 additions & 12 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,7 @@

setFromEuler: function ( euler, update ) {

if ( ( euler && euler.isEuler ) === false ) {
if ( ! ( euler && euler.isEuler ) ) {

throw new Error( 'THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.' );

Expand Down Expand Up @@ -2810,7 +2810,7 @@

return function applyEuler( euler ) {

if ( ( euler && euler.isEuler ) === false ) {
if ( ! ( euler && euler.isEuler ) ) {

console.error( 'THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.' );

Expand Down Expand Up @@ -3450,7 +3450,7 @@

makeRotationFromEuler: function ( euler ) {

if ( ( euler && euler.isEuler ) === false ) {
if ( ! ( euler && euler.isEuler ) ) {

console.error( 'THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );

Expand Down Expand Up @@ -9995,10 +9995,8 @@

applyMatrix4: function ( matrix4 ) {

this.direction.add( this.origin ).applyMatrix4( matrix4 );
this.origin.applyMatrix4( matrix4 );
this.direction.sub( this.origin );
this.direction.normalize();
this.direction.transformDirection( matrix4 );

return this;

Expand Down Expand Up @@ -13887,7 +13885,7 @@

addAttribute: function ( name, attribute ) {

if ( ( attribute && attribute.isBufferAttribute ) === false && ( attribute && attribute.isInterleavedBufferAttribute ) === false ) {
if ( ! ( attribute && attribute.isBufferAttribute ) && ! ( attribute && attribute.isInterleavedBufferAttribute ) ) {

console.warn( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' );

Expand Down Expand Up @@ -14597,7 +14595,7 @@

merge: function ( geometry, offset ) {

if ( ( geometry && geometry.isBufferGeometry ) === false ) {
if ( ! ( geometry && geometry.isBufferGeometry ) ) {

console.error( 'THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.', geometry );
return;
Expand Down Expand Up @@ -20946,8 +20944,8 @@
// Rendering

this.render = function ( scene, camera, renderTarget, forceClear ) {

if ( camera !== undefined && camera.isCamera !== true ) {
if ( ! ( camera && camera.isCamera ) ) {

console.error( 'THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.' );
return;
Expand Down Expand Up @@ -22554,7 +22552,7 @@

this.readRenderTargetPixels = function ( renderTarget, x, y, width, height, buffer ) {

if ( ( renderTarget && renderTarget.isWebGLRenderTarget ) === false ) {
if ( ! ( renderTarget && renderTarget.isWebGLRenderTarget ) ) {

console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.' );
return;
Expand Down Expand Up @@ -27207,7 +27205,7 @@

var font = parameters.font;

if ( ( font && font.isFont ) === false ) {
if ( ! ( font && font.isFont ) ) {

console.error( 'THREE.TextGeometry: font parameter is not an instance of THREE.Font.' );
return new Geometry();
Expand Down
Loading

0 comments on commit 0df6403

Please sign in to comment.