修正内存泄漏,提供增量加载.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user