Skip to content

Commit 3c8aa5d

Browse files
committed
ColladaLoader2: WIP Z_UP
1 parent 00a12dd commit 3c8aa5d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/js/loaders/ColladaLoader2.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,12 @@ THREE.ColladaLoader.prototype = {
468468
function pushVector( i ) {
469469

470470
var index = indices[ i + offset ] * 3;
471-
array.push( source[ index + 0 ], source[ index + 1 ], source[ index + 2 ] );
471+
472+
if ( asset.upAxis === 'Z_UP' ) {
473+
array.push( source[ index + 0 ], source[ index + 2 ], - source[ index + 1 ] );
474+
} else {
475+
array.push( source[ index + 0 ], source[ index + 1 ], source[ index + 2 ] );
476+
}
472477

473478
}
474479

0 commit comments

Comments
 (0)