Merge pull request #82512 from Rindbee/fix-axis-being-mixed-up-in-3.x

[3.x] BVH - fix axis getting mixed up when split leaf
This commit is contained in:
Rémi Verschelde 2023-10-01 22:51:46 +02:00
commit fe7ed984b5
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ void _split_leaf_sort_groups_simple(int &num_a, int &num_b, uint16_t *group_a, u
int order[POINT::AXIS_COUNT]; int order[POINT::AXIS_COUNT];
order[0] = size.min_axis(); order[0] = size.max_axis();
order[POINT::AXIS_COUNT - 1] = size.max_axis(); order[POINT::AXIS_COUNT - 1] = size.min_axis();
static_assert(POINT::AXIS_COUNT <= 3, "BVH POINT::AXIS_COUNT has unexpected size"); static_assert(POINT::AXIS_COUNT <= 3, "BVH POINT::AXIS_COUNT has unexpected size");
if (POINT::AXIS_COUNT == 3) { if (POINT::AXIS_COUNT == 3) {