ソースを参照

Update modules.

Mugen87 4 年 前
コミット
b1c740e969
2 ファイル変更3 行追加5 行削除
  1. 1 3
      examples/jsm/modifiers/EdgeSplitModifier.js
  2. 2 2
      utils/modularize.js

+ 1 - 3
examples/jsm/modifiers/EdgeSplitModifier.js

@@ -5,7 +5,6 @@ import {
 } from '../../../build/three.module.js';
 import { BufferGeometryUtils } from '../utils/BufferGeometryUtils.js';
 
-
 var EdgeSplitModifier = function () {
 
 	var A = new Vector3();
@@ -15,7 +14,6 @@ var EdgeSplitModifier = function () {
 	var positions, normals;
 	var indexes;
 	var pointToIndexMap, splitIndexes;
-
 	let oldNormals;
 
 
@@ -187,7 +185,7 @@ var EdgeSplitModifier = function () {
 		}
 
 
-		if ( ! geometry.index ) {
+		if ( geometry.index == null ) {
 
 			if ( BufferGeometryUtils === undefined ) {
 

+ 2 - 2
utils/modularize.js

@@ -1,5 +1,5 @@
 var fs = require( 'fs' );
-var os = require('os'), EOL = os.EOL;
+var os = require( 'os' ), EOL = os.EOL;
 THREE = require( '../build/three.js' );
 
 var srcFolder = __dirname + '/../examples/js/';
@@ -36,7 +36,7 @@ var files = [
 
 	{ path: 'exporters/ColladaExporter.js', dependencies: [], ignoreList: [] },
 	{ path: 'exporters/DRACOExporter.js', dependencies: [], ignoreList: [ 'Geometry' ] },
-	{ path: 'exporters/GLTFExporter.js', dependencies: [], ignoreList: [ 'AnimationClip', 'Camera', 'Geometry', 'Material', 'Mesh', 'Object3D', 'Scenes', 'ShaderMaterial'] },
+	{ path: 'exporters/GLTFExporter.js', dependencies: [], ignoreList: [ 'AnimationClip', 'Camera', 'Geometry', 'Material', 'Mesh', 'Object3D', 'Scenes', 'ShaderMaterial' ] },
 	{ path: 'exporters/MMDExporter.js', dependencies: [ { name: 'MMDParser', path: 'libs/mmdparser.module.js' } ], ignoreList: [] },
 	{ path: 'exporters/OBJExporter.js', dependencies: [], ignoreList: [] },
 	{ path: 'exporters/PLYExporter.js', dependencies: [], ignoreList: [] },