WIP: Volume grid attribute support in geometry nodes #110044
|
@ -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};
|
||||
}
|
||||
|
|
|
@ -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{}));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue