فهرست منبع

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;