From ea60509b40ce3cc913d70ed8e2b32acffe64b646 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 6 Jan 2016 23:48:14 +0100 Subject: [PATCH] Clean up. --- examples/js/loaders/ColladaLoader2.js | 2 +- src/textures/CubeTexture.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/js/loaders/ColladaLoader2.js b/examples/js/loaders/ColladaLoader2.js index 8f3b7ee3f2..cee7879b79 100644 --- a/examples/js/loaders/ColladaLoader2.js +++ b/examples/js/loaders/ColladaLoader2.js @@ -511,7 +511,7 @@ THREE.ColladaLoader.prototype = { console.error( 'ColladaLoder: Undefined sampler', sid ); - return; + return null; } diff --git a/src/textures/CubeTexture.js b/src/textures/CubeTexture.js index 9a0ef65ab4..e40604c6ab 100644 --- a/src/textures/CubeTexture.js +++ b/src/textures/CubeTexture.js @@ -19,9 +19,9 @@ THREE.CubeTexture.prototype.constructor = THREE.CubeTexture; THREE.CubeTexture.prototype.copy = function ( source ) { THREE.Texture.prototype.copy.call( this, source ); - + this.images = source.images; - + return this; -}; \ No newline at end of file +}; -- GitLab