diff --git a/src/core/Object3D.js b/src/core/Object3D.js index a8ad2a42eaf78a13e111f315c8b79abdf51a5bdb..bc17f364a94465682cf67286a1def7c96ae4987f 100644 --- a/src/core/Object3D.js +++ b/src/core/Object3D.js @@ -171,23 +171,23 @@ Object.assign( Object3D.prototype, EventDispatcher.prototype, { }(), rotateOnWorldAxis: function () { - + // rotate object on axis in world space // axis is assumed to be normalized // method assumes no rotated parent var q1 = new Quaternion(); - + return function rotateOnWorldAxis( axis, angle ) { - + q1.setFromAxisAngle( axis, angle ); - + this.quaternion.premultiply( q1 ); - + return this; - + }; - + }(), rotateX: function () { diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index c833e294d8525aca58176fc16e1de63fc7906bef..74338826a51e0123465047fef70f7f3645f82b5c 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -437,7 +437,7 @@ function WebGLRenderer( parameters ) { // Clearing - this.getClearColor = function() { + this.getClearColor = function () { return background.getClearColor(); @@ -449,13 +449,13 @@ function WebGLRenderer( parameters ) { }; - this.getClearAlpha = function() { + this.getClearAlpha = function () { return background.getClearAlpha(); }; - this.setClearAlpha = function() { + this.setClearAlpha = function () { background.setClearAlpha.apply( background, arguments );