|
@@ -183,7 +183,7 @@ private:
|
|
Node *parent = nullptr;
|
|
Node *parent = nullptr;
|
|
union {
|
|
union {
|
|
Node *childs[2];
|
|
Node *childs[2];
|
|
- void *data = nullptr;
|
|
|
|
|
|
+ void *data;
|
|
};
|
|
};
|
|
|
|
|
|
_FORCE_INLINE_ bool is_leaf() const { return childs[1] == nullptr; }
|
|
_FORCE_INLINE_ bool is_leaf() const { return childs[1] == nullptr; }
|
|
@@ -215,7 +215,10 @@ private:
|
|
return axis.dot(volume.get_center() - org) <= 0;
|
|
return axis.dot(volume.get_center() - org) <= 0;
|
|
}
|
|
}
|
|
|
|
|
|
- Node() {}
|
|
|
|
|
|
+ Node() {
|
|
|
|
+ childs[0] = nullptr;
|
|
|
|
+ childs[1] = nullptr;
|
|
|
|
+ }
|
|
};
|
|
};
|
|
|
|
|
|
PagedAllocator<Node> node_allocator;
|
|
PagedAllocator<Node> node_allocator;
|