소스 검색

making sure material and children are disposed correctly.

Raanan Weber 7 년 전
부모
커밋
d4e54468d9
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      Viewer/src/model/viewerModel.ts

+ 1 - 3
Viewer/src/model/viewerModel.ts

@@ -727,8 +727,6 @@ export class ViewerModel implements IDisposable {
         this.skeletons.length = 0;
         this._animations.forEach(ag => ag.dispose());
         this._animations.length = 0;
-        this._meshes.forEach(m => m.dispose());
-        this._meshes.length = 0;
-        this.rootMesh.dispose();
+        this.rootMesh.dispose(false, true);
     }
 }