diff --git a/examples/js/loaders/ColladaLoader2.js b/examples/js/loaders/ColladaLoader2.js index 8f3b7ee3f23b5f1ef041fd80aff6c9a35942fca2..cee7879b792fce6b91227ea2d025791c11144287 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 9a0ef65ab47f509b8f1e64ca2bd0dda5a96018f7..e40604c6ab2a4b9adcba294a9fa45cad74badeb8 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 +};