소스 검색

#3277 Checks if thresholdPP exists when disposing

pixelscommander 7 년 전
부모
커밋
ebe7db6eff
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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();
+            }
         }
 
         /**