Fix #113763: Float2 attributes on curves not rendering in Cycles #113884

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:113763 into blender-v4.0-release 2023-10-18 14:21:18 +02:00
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,14 @@ template<> struct AttributeConverter<int> {
return float(value);
}
};
template<> struct AttributeConverter<blender::float2> {
using CyclesT = float2;
static constexpr auto type_desc = TypeFloat2;
static CyclesT convert(const blender::float2 &value)
{
return make_float2(value[0], value[1]);
}
};
template<> struct AttributeConverter<blender::float3> {
using CyclesT = float3;
static constexpr auto type_desc = TypeVector;