You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Merge pull request #29283 from qarmin/fix_some_always_same_values
Remove always true/false values
This commit is contained in:
@@ -1018,15 +1018,15 @@ int CSGBrushOperation::MeshMerge::_create_bvh(BVH *p_bvh, BVH **p_bb, int p_from
|
||||
max_depth = p_depth;
|
||||
}
|
||||
|
||||
if (p_size <= BVH_LIMIT) {
|
||||
if (p_size == 0) {
|
||||
|
||||
return -1;
|
||||
} else if (p_size <= BVH_LIMIT) {
|
||||
|
||||
for (int i = 0; i < p_size - 1; i++) {
|
||||
p_bb[p_from + i]->next = p_bb[p_from + i + 1] - p_bvh;
|
||||
}
|
||||
return p_bb[p_from] - p_bvh;
|
||||
} else if (p_size == 0) {
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
AABB aabb;
|
||||
|
||||
Reference in New Issue
Block a user