Преглед на файлове

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