浏览代码

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);