소스 검색

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