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 private mask object inaccessible #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions bonxai_core/include/bonxai/bonxai.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ inline bool VoxelGrid<DataT>::Accessor::setCellOn(const CoordT& coord,
prev_inner_coord_ = inner_key;
}
uint32_t index = grid_.getLeafIndex(coord);
bool was_on = prev_leaf_ptr_->mask.setOn(index);
bool was_on = prev_leaf_ptr_->mask().setOn(index);
if (!was_on)
{
prev_leaf_ptr_->cell(index) = default_value;
Expand All @@ -711,7 +711,7 @@ inline bool VoxelGrid<DataT>::Accessor::setCellOff(const CoordT& coord)
if (prev_leaf_ptr_)
{
uint32_t index = grid_.getLeafIndex(coord);
return prev_leaf_ptr_->mask.setOff(index);
return prev_leaf_ptr_->mask().setOff(index);
}
return false;
}
Expand Down