From 79da9723740ee819d30839568014d19445a8f44a Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Fri, 20 Oct 2017 17:55:40 +0200 Subject: [PATCH] Clean up --- src/core/Object3D.js | 14 +++++++------- src/renderers/WebGLRenderer.js | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/core/Object3D.js b/src/core/Object3D.js index a8ad2a42ea..bc17f364a9 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 c833e294d8..74338826a5 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 ); -- GitLab