Просмотр исходного кода

Box3B recompute only on precise. Add _testStarted class.

master
Palash Bansal 1 год назад
Родитель
Сommit
231ed8ea57
Аккаунт пользователя с таким Email не найден
2 измененных файлов: 2 добавлений и 1 удалений
  1. 1
    0
      src/testing/testing.ts
  2. 1
    1
      src/three/math/Box3B.ts

+ 1
- 0
src/testing/testing.ts Просмотреть файл

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

+ 1
- 1
src/three/math/Box3B.ts Просмотреть файл

@@ -30,7 +30,7 @@ export class Box3B extends Box3 {
// InstancedMesh has boundingBox = null, so it can be computed
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!()


Загрузка…
Отмена
Сохранить