Bläddra i källkod

#3277 Checks if thresholdPP exists when disposing

pixelscommander 7 år sedan
förälder
incheckning
ebe7db6eff
1 ändrade filer med 3 tillägg och 1 borttagningar
  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();
+            }
         }
 
         /**