Sfoglia il codice sorgente

USDZExporter: Fix import. (#24366)

Michael Herzog 3 anni fa
parent
commit
fa4600266a
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      examples/jsm/exporters/USDZExporter.js

+ 5 - 1
examples/jsm/exporters/USDZExporter.js

@@ -1,3 +1,7 @@
+import {
+	DoubleSide
+} from 'three';
+
 import * as fflate from '../libs/fflate.module.js';
 
 class USDZExporter {
@@ -408,7 +412,7 @@ function buildMaterial( material, textures ) {
 	}
 
 
-	if ( material.side === THREE.DoubleSide ) {
+	if ( material.side === DoubleSide ) {
 
 		console.warn( 'THREE.USDZExporter: USDZ does not support double sided materials', material );