소스 검색

Update babylonFileLoader.ts

MackeyK24 6 년 전
부모
커밋
7e8a4a325c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Loading/Plugins/babylonFileLoader.ts

+ 1 - 1
src/Loading/Plugins/babylonFileLoader.ts

@@ -66,7 +66,7 @@ var loadDetailLevels = (scene: Scene, mesh: AbstractMesh) => {
 
     // Every value specified in the ids array of the lod data points to another mesh which should be used as the lower LOD level.
     // The distances (or coverages) array values specified are used along with the lod mesh ids as a hint to determine the switching threshold for the various LODs.
-    if (mesh._waitingData && mesh._waitingData.lods) {
+    if (mesh._waitingData.lods) {
         if (mesh._waitingData.lods.ids && mesh._waitingData.lods.ids.length > 0) {
             const lodmeshes: string[] = mesh._waitingData.lods.ids;
             const wasenabled: boolean = mastermesh.isEnabled(false);