Преглед изворни кода

#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();
+            }
         }
 
         /**