Explorar o código

#3277 Checks if thresholdPP exists when disposing

pixelscommander %!s(int64=7) %!d(string=hai) anos
pai
achega
ebe7db6eff
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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();
+            }
         }
 
         /**