فهرست منبع

Ray Circular dep

sebastien 6 سال پیش
والد
کامیت
b48fd56c1f
2فایلهای تغییر یافته به همراه5 افزوده شده و 7 حذف شده
  1. 3 4
      src/Materials/colorCurves.ts
  2. 2 3
      src/Tools/observable.ts

+ 3 - 4
src/Materials/colorCurves.ts

@@ -1,7 +1,6 @@
-import { serialize } from "Tools/decorators";
-import { SerializationHelper } from "Tools";
-import { Color4 } from "Math";
-import { Effect } from "Materials";
+import { SerializationHelper, serialize } from "Tools/decorators";
+import { Color4 } from "Math/math";
+import { Effect } from "Materials/effect";
 
     /**
      * The color grading curves provide additional color adjustmnent that is applied after any color grading transform (3D LUT).

+ 2 - 3
src/Tools/observable.ts

@@ -1,5 +1,4 @@
 import { Nullable } from "types";
-import { Tools } from "./tools";
 
     /**
      * A class serves as a medium between the observable and its observers
@@ -246,9 +245,9 @@ import { Tools } from "./tools";
         private _deferUnregister(observer: Observer<T>): void {
             observer.unregisterOnNextCall = false;
             observer._willBeUnregistered = true;
-            Tools.SetImmediate(() => {
+            setTimeout(() => {
                 this._remove(observer);
-            });
+            }, 0);
         }
 
         // This should only be called when not iterating over _observers to avoid callback skipping.