Răsfoiți Sursa

USDZExporter: Added uv2 warning.

Mr.doob 4 ani în urmă
părinte
comite
4ad0d3c476
1 a modificat fișierele cu 6 adăugiri și 0 ștergeri
  1. 6 0
      examples/jsm/exporters/USDZExporter.js

+ 6 - 0
examples/jsm/exporters/USDZExporter.js

@@ -157,6 +157,12 @@ function buildMesh( geometry, material ) {
 	const attributes = geometry.attributes;
 	const attributes = geometry.attributes;
 	const count = attributes.position.count;
 	const count = attributes.position.count;
 
 
+	if ( 'uv2' in attributes ) {
+
+		console.warn( 'THREE.USDZExporter: uv2 not supported yet.' );
+
+	}
+
 	return `def Mesh "${ name }"
 	return `def Mesh "${ name }"
     {
     {
         int[] faceVertexCounts = [${ buildMeshVertexCount( geometry ) }]
         int[] faceVertexCounts = [${ buildMeshVertexCount( geometry ) }]