Browse Source

#3277 Checks if thresholdPP exists when disposing

pixelscommander 7 năm trước cách đây
mục cha
commit
ebe7db6eff
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/Layer/babylon.highlightlayer.ts

+ 3 - 1
src/Layer/babylon.highlightlayer.ts

@@ -897,7 +897,9 @@
             this._downSamplePostprocess.dispose();
             this._horizontalBlurPostprocess.dispose();
             this._verticalBlurPostprocess.dispose();
-            this._thresholdPostProcess.dispose();
+            if (this._thresholdPostProcess) {
+                this._thresholdPostProcess.dispose();
+            }
         }
 
         /**