Geometry Nodes: initial Volume Grid socket support #115270

Merged
Jacques Lucke merged 193 commits from LukasTonne/blender:volume-grid-sockets into main 2023-12-20 22:33:26 +01:00
Showing only changes of commit 365e7eea6c - Show all commits

View File

@ -66,12 +66,6 @@ template<typename T> struct ValueOrField {
/* This returns a default value when the field is not constant. */
return fn::evaluate_constant_field(this->field);
}
if (this->grid) {
/* Returns the grid background value. */
if (std::optional<T> value = grid_utils::get_background_value(this->grid)) {
return *value;
}
}
return this->value;
}