Skip to content

Commit

Permalink
ColladaLoader: Add warning when converting up axis. (#24338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored Jul 18, 2022
1 parent 9c4eb77 commit b9baf2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/jsm/loaders/ColladaLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -4066,6 +4066,7 @@ class ColladaLoader extends Loader {

if ( asset.upAxis === 'Z_UP' ) {

console.warn( 'THREE.ColladaLoader: You are loading an asset with a Z-UP coordinate system. The loader just rotates the asset to transform it into Y-UP. The vertex data are not converted, see #24289.' );
scene.quaternion.setFromEuler( new Euler( - Math.PI / 2, 0, 0 ) );

}
Expand Down

0 comments on commit b9baf2a

Please sign in to comment.