You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Moved member variables from constructor to initialization list
This commit is contained in:
@@ -577,12 +577,11 @@ BSP_Tree::BSP_Tree(const PoolVector<Face3> &p_faces, real_t p_error_radius) {
|
||||
error_radius = p_error_radius;
|
||||
}
|
||||
|
||||
BSP_Tree::BSP_Tree(const Vector<Node> &p_nodes, const Vector<Plane> &p_planes, const Rect3 &p_aabb, real_t p_error_radius) {
|
||||
|
||||
nodes = p_nodes;
|
||||
planes = p_planes;
|
||||
aabb = p_aabb;
|
||||
error_radius = p_error_radius;
|
||||
BSP_Tree::BSP_Tree(const Vector<Node> &p_nodes, const Vector<Plane> &p_planes, const Rect3 &p_aabb, real_t p_error_radius)
|
||||
: nodes(p_nodes),
|
||||
planes(p_planes),
|
||||
aabb(p_aabb),
|
||||
error_radius(p_error_radius) {
|
||||
}
|
||||
|
||||
BSP_Tree::~BSP_Tree() {
|
||||
|
||||
Reference in New Issue
Block a user