소스 검색

Fix missing undefined

David Catuhe 6 년 전
부모
커밋
ff6600c53c
1개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 11 11
      src/Meshes/instancedMesh.ts

+ 11 - 11
src/Meshes/instancedMesh.ts

@@ -282,18 +282,18 @@ export class InstancedMesh extends AbstractMesh {
     /** @hidden */
     public _activate(renderId: number, intermediateRendering: boolean): boolean {
         if (this._currentLOD) {
-            this._currentLOD._registerInstanceForRenderId(this, renderId);
-        }
+            this._currentLOD._registerInstanceForRenderId(this, renderId); 
 
-        if (intermediateRendering) {
-            if (!this._currentLOD._internalAbstractMeshDataInfo._isActiveIntermediate) {
-                this._currentLOD._internalAbstractMeshDataInfo._onlyForInstancesIntermediate = true;
-                return true;
-            }
-        } else {
-            if (!this._currentLOD._internalAbstractMeshDataInfo._isActive) {
-                this._currentLOD._internalAbstractMeshDataInfo._onlyForInstances = true;
-                return true;
+            if (intermediateRendering) {
+                if (!this._currentLOD._internalAbstractMeshDataInfo._isActiveIntermediate) {
+                    this._currentLOD._internalAbstractMeshDataInfo._onlyForInstancesIntermediate = true;
+                    return true;
+                }
+            } else {
+                if (!this._currentLOD._internalAbstractMeshDataInfo._isActive) {
+                    this._currentLOD._internalAbstractMeshDataInfo._onlyForInstances = true;
+                    return true;
+                }
             }
         }
         return false;