Fix for Cycles UV adaptive subdivision after float2 changes.

Differential Revision: https://developer.blender.org/D4717
This commit is contained in:
Alex Fuller 2019-04-25 14:04:31 +02:00 committed by Brecht Van Lommel
parent c07bce5bf2
commit 2adf4b401e
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}