Browse Source

Fixed bug on babylon.camera.js in attachPostProcess

michael-korbas 11 years ago
parent
commit
16dfeaf9c1
1 changed files with 1 additions and 1 deletions
  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);