소스 검색

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