浏览代码

ColladaLoader: Add warning when converting up axis. (#24338)

Michael Herzog 3 年之前
父节点
当前提交
b9baf2a84f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      examples/jsm/loaders/ColladaLoader.js

+ 1 - 0
examples/jsm/loaders/ColladaLoader.js

@@ -4066,6 +4066,7 @@ class ColladaLoader extends Loader {
 
 
 		if ( asset.upAxis === 'Z_UP' ) {
 		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 ) );
 			scene.quaternion.setFromEuler( new Euler( - Math.PI / 2, 0, 0 ) );
 
 
 		}
 		}