Browse Source

fix after render registration for mesh

jeff Palmer 10 năm trước cách đây
mục cha
commit
b3a3a6d60f
2 tập tin đã thay đổi với 1489 bổ sung1488 xóa
  1. 1487 1486
      Babylon/Mesh/babylon.mesh.js
  2. 2 2
      Babylon/Mesh/babylon.mesh.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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);
             this._onAfterRenderCallbacks.push(func);
         }
         }
 
 
-        public unregisterAfterRender(func: () => void): void {
+        public unregisterAfterRender(func: (mesh: AbstractMesh) => void): void {
             var index = this._onAfterRenderCallbacks.indexOf(func);
             var index = this._onAfterRenderCallbacks.indexOf(func);
 
 
             if (index > -1) {
             if (index > -1) {