Merge branch 'blender2.7'

This commit is contained in:
Brecht Van Lommel
2019-04-25 14:31:45 +02:00

View File

@@ -251,6 +251,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;
}