修正内存泄漏,提供增量加载.

This commit is contained in:
ChenX
2018-07-02 12:07:16 +08:00
parent fcf2a1eb73
commit c1e9aac48b
12 changed files with 46 additions and 28 deletions

View File

@@ -134,7 +134,7 @@ export class CameraUpdate
}
ZoomExtensBox3(box3: THREE.Box3)
{
if (!box3) return;
if (!box3 || box3.isEmpty()) return;
this.Camera.updateMatrixWorld(false);
//变换到相机坐标系
box3.applyMatrix4(this.Camera.matrixWorldInverse);