Kaynağa Gözat

Box3B recompute only on precise. Add _testStarted class.

master
Palash Bansal 1 yıl önce
ebeveyn
işleme
231ed8ea57
No account linked to committer's email address
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1
    0
      src/testing/testing.ts
  2. 1
    1
      src/three/math/Box3B.ts

+ 1
- 0
src/testing/testing.ts Dosyayı Görüntüle

// eslint-disable-next-line @typescript-eslint/naming-convention // eslint-disable-next-line @typescript-eslint/naming-convention
export function _testStart(): void { export function _testStart(): void {
window.dispatchEvent(new Event('threepipe-test-started')) window.dispatchEvent(new Event('threepipe-test-started'))
document.body.classList.add('_testStarted')
} }

+ 1
- 1
src/three/math/Box3B.ts Dosyayı Görüntüle

// InstancedMesh has boundingBox = null, so it can be computed // InstancedMesh has boundingBox = null, so it can be computed
if ((object as IObject3D).boundingBox !== undefined) { if ((object as IObject3D).boundingBox !== undefined) {


if (/* (object as IObject3D).boundingBox === null && */typeof (object as IObject3D).computeBoundingBox === 'function') {
if ((precise || (object as IObject3D).boundingBox === null) && typeof (object as IObject3D).computeBoundingBox === 'function') {


(object as IObject3D).computeBoundingBox!() (object as IObject3D).computeBoundingBox!()



Loading…
İptal
Kaydet