fix: avoid null removes
This commit is contained in:
parent
3a5c4e5589
commit
525df7554c
|
@ -294,6 +294,10 @@ export default () => class Visible extends decorate(Trait) {
|
|||
if (!list) {
|
||||
return;
|
||||
}
|
||||
const aabb = this.entity.visibleAabb;
|
||||
if (Rectangle.isNull(aabb)) {
|
||||
return;
|
||||
}
|
||||
list.quadTree.remove(this.entity);
|
||||
this.#quadTreeAabb = [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user