فهرست منبع

fix after render registration for mesh

jeff Palmer 10 سال پیش
والد
کامیت
b3a3a6d60f
2فایلهای تغییر یافته به همراه1489 افزوده شده و 1488 حذف شده
  1. 1487 1486
      Babylon/Mesh/babylon.mesh.js
  2. 2 2
      Babylon/Mesh/babylon.mesh.ts

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1487 - 1486
Babylon/Mesh/babylon.mesh.js


+ 2 - 2
Babylon/Mesh/babylon.mesh.ts

@@ -525,11 +525,11 @@
             }
         }
 
-        public registerAfterRender(func: () => void): void {
+        public registerAfterRender(func: (mesh: AbstractMesh) => void): void {
             this._onAfterRenderCallbacks.push(func);
         }
 
-        public unregisterAfterRender(func: () => void): void {
+        public unregisterAfterRender(func: (mesh: AbstractMesh) => void): void {
             var index = this._onAfterRenderCallbacks.indexOf(func);
 
             if (index > -1) {