Fix: Geometry Nodes: Grid converter for float3 returns uniform vector
The constructor used here was the `openvdb::Vec3f(float)` variant which produces an incorrect uniform `(x,x,x)` vector instead of `(x,y,z)`. Pull Request: https://projects.blender.org/blender/blender/pulls/137714
This commit is contained in:
@@ -102,7 +102,7 @@ template<> struct VolumeGridTraits<float3> {
|
||||
|
||||
static openvdb::Vec3f to_openvdb(const float3 &value)
|
||||
{
|
||||
return openvdb::Vec3f(*value);
|
||||
return openvdb::Vec3f(value.x, value.y, value.z);
|
||||
}
|
||||
static float3 to_blender(const openvdb::Vec3f &value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user