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:
Lukas Tönne
2025-04-18 15:38:01 +02:00
parent 730d9e4d2e
commit c220e45282

View File

@@ -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)
{