Преглед изворни кода

USDZExporter: Change three import.

Mr.doob пре 2 година
родитељ
комит
1fc687fc31
1 измењених фајлова са 2 додато и 5 уклоњено
  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';
 
 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 );