WIP: Volume grid attribute support in geometry nodes #110044

Closed
Lukas Tönne wants to merge 130 commits from LukasTonne/blender:geometry-nodes-flip into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 13dc967a3a - Show all commits

View File

@ -388,7 +388,7 @@ static AttributeAccessorFunctions get_volume_accessor_functions()
return grids.domain_size(domain);
};
fn.domain_grid_mask =
[](const void *owner, const eAttrDomain domain, const int main_grid) -> volume::GGrid {
[](const void *owner, const eAttrDomain /*domain*/, const int main_grid) -> volume::GGrid {
if (owner == nullptr || main_grid < 0) {
return {nullptr};
}

View File

@ -195,7 +195,6 @@ MutableGrid<T> MutableGrid<T>::create(const GGrid &mask,
const typename TreeType::Ptr tree = nullptr;
volume::grid_to_static_type(mask.grid_, [&](auto &typed_mask) {
using MaskGridType = typename std::decay<decltype(typed_mask)>::type;
tree = typename TreeType::Ptr(new TreeType(
typed_mask.grid_->tree(), inactive_value, active_value, openvdb::TopologyCopy{}));
});