Skip to content

Commit a82f6bb

Browse files
committed
ColladaLoader2: Clean up.
1 parent 3adf478 commit a82f6bb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

examples/js/loaders/ColladaLoader2.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,7 @@ THREE.ColladaLoader.prototype = {
183183
// image
184184

185185
var imageLoader = new THREE.ImageLoader();
186-
187-
if ( this.crossOrigin ) {
188-
189-
imageLoader.crossOrigin = this.crossOrigin;
190-
191-
}
186+
imageLoader.setCrossOrigin( this.crossOrigin );
192187

193188
function parseImage( xml ) {
194189

@@ -606,10 +601,10 @@ THREE.ColladaLoader.prototype = {
606601
texture.repeat.set( technique.repeatU, technique.repeatV );
607602

608603
} else {
609-
604+
610605
texture.wrapS = THREE.RepeatWrapping;
611606
texture.wrapT = THREE.RepeatWrapping;
612-
607+
613608
}
614609

615610
texture.needsUpdate = true;

0 commit comments

Comments
 (0)