Browse Source

USDZExporter: Change three import.

Mr.doob 2 years ago
parent
commit
1fc687fc31
1 changed files with 2 additions and 5 deletions
  1. 2 5
      examples/jsm/exporters/USDZExporter.js

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

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