Browse Source

GLTFExporter jsm - Fixed imports

Max Godefroy (Clyde) 4 years ago
parent
commit
23704f234a
1 changed files with 3 additions and 5 deletions
  1. 3 5
      examples/jsm/exporters/GLTFExporter.js

+ 3 - 5
examples/jsm/exporters/GLTFExporter.js

@@ -14,11 +14,9 @@ import {
 	NearestMipmapLinearFilter,
 	NearestMipmapNearestFilter,
 	PropertyBinding,
-	RGBAIntegerFormat,
+	RepeatWrapping,
 	RGBAFormat,
-	RGBIntegerFormat,
 	RGBFormat,
-	RepeatWrapping,
 	Scene,
 	Vector3
 } from "../../../build/three.module.js";
@@ -832,14 +830,14 @@ GLTFExporter.prototype = {
 
 				} else {
 
-					if ( format !== THREE.RGBAFormat && format !== THREE.RGBFormat )
+					if ( format !== RGBAFormat && format !== RGBFormat )
 						throw "Only RGB and RGBA formats are supported";
 
 					if ( image.width !== canvas.width || image.height !== canvas.height )
 						console.warn( "Image size and imposed canvas sized do not match" );
 
 					let data = image.data;
-					if ( format === THREE.RGBFormat ) {
+					if ( format === RGBFormat ) {
 
 						data = new Uint8ClampedArray( image.height * image.width * 4 );
 						data.forEach( function ( _, i ) {