Fix #113763: Float2 attributes on curves not rendering in Cycles
Regression from 2fac2228d0.
Above commit was missing an AttributeConverter for `blender::float2`,
now added.
Pull Request: https://projects.blender.org/blender/blender/pulls/113884
This commit is contained in:
committed by
Philipp Oeser
parent
b2fe1bf624
commit
ad0b9dbdd2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user