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

Fixed bug on babylon.camera.js in attachPostProcess

michael-korbas пре 11 година
родитељ
комит
16dfeaf9c1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Babylon/Cameras/babylon.camera.js

+ 1 - 1
Babylon/Cameras/babylon.camera.js

@@ -165,7 +165,7 @@ var BABYLON = BABYLON || {};
             return;
         }
 
-        if (!insertAt || insertAt < 0) {
+        if (insertAt == null || insertAt < 0) {
             this._postProcesses.push(postProcess);
             this._postProcessesTakenIndices.push(this._postProcesses.length - 1);