Browse Source

fix after render registration for mesh

jeff Palmer 10 years ago
parent
commit
b3a3a6d60f
2 changed files with 1489 additions and 1488 deletions
  1. 1487 1486
      Babylon/Mesh/babylon.mesh.js
  2. 2 2
      Babylon/Mesh/babylon.mesh.ts

File diff suppressed because it is too large
+ 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) {