浏览代码

USDZExporter: Fix import. (#24366)

Michael Herzog 3 年之前
父节点
当前提交
fa4600266a
共有 1 个文件被更改,包括 5 次插入1 次删除
  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 );