Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix not refitting upward from leaf nodes #82482

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/math/bvh_refit.inc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void refit_branch(uint32_t p_node_id) {
TLeaf &leaf = _node_get_leaf(tnode);
if (leaf.is_dirty()) {
leaf.set_dirty(false);
refit_upward(p_node_id);
refit_upward(rp.node_id);
}
}
} // while more nodes to pop
Expand Down
2 changes: 1 addition & 1 deletion core/math/bvh_structs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public:

void clear() {
num_items = 0;
set_dirty(true);
set_dirty(false);
}
bool is_full() const { return num_items >= MAX_ITEMS; }

Expand Down
Loading