Garrett Johnson 4 lat temu
rodzic
commit
623df40de1
2 zmienionych plików z 2 dodań i 2 usunięć
  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 += '/';