瀏覽代碼

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