Garrett Johnson 4 年之前
父节点
当前提交
623df40de1
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/three/B3DMLoader.js
  2. 1 1
      src/three/I3DMLoader.js

+ 1 - 1
src/three/B3DMLoader.js

@@ -41,7 +41,7 @@ export class B3DMLoader extends B3DMLoaderBase {
 
 			// GLTFLoader assumes the working path ends in a slash
 			let workingPath = this.workingPath;
-			if ( !/[\\/]$/.test( workingPath ) ) {
+			if ( ! /[\\/]$/.test( workingPath ) ) {
 
 				workingPath += '/';
 

+ 1 - 1
src/three/I3DMLoader.js

@@ -58,7 +58,7 @@ export class I3DMLoader extends I3DMLoaderBase {
 
 					// GLTFLoader assumes the working path ends in a slash
 					let workingPath = this.workingPath;
-					if ( !/[\\/]$/.test( workingPath ) ) {
+					if ( ! /[\\/]$/.test( workingPath ) ) {
 
 						workingPath += '/';