Fix for Cycles UV adaptive subdivision after float2 changes.
Differential Revision: https://developer.blender.org/D4717
This commit is contained in:
parent
c07bce5bf2
commit
2adf4b401e
|
@ -254,6 +254,9 @@ void Attribute::add_with_weight(void* dst, void* src, float weight)
|
|||
else if(same_storage(type, TypeDesc::TypeFloat)) {
|
||||
*((float*)dst) += *((float*)src) * weight;
|
||||
}
|
||||
else if(same_storage(type, TypeFloat2)) {
|
||||
*((float2*)dst) += *((float2*)src) * weight;
|
||||
}
|
||||
else if(same_storage(type, TypeDesc::TypeVector)) {
|
||||
*((float4*)dst) += *((float4*)src) * weight;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue